|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.llnl.ontology.wordnet.wsd.FirstSenseDisambiguation
public class FirstSenseDisambiguation
| Constructor Summary | |
|---|---|
FirstSenseDisambiguation()
|
|
| Method Summary | |
|---|---|
Sentence |
disambiguate(Sentence sentence)
Returns a new List of s which have word sense
labels for each noun found in sentences. |
Sentence |
disambiguate(Sentence sentence,
Set<Integer> focusIndices)
Returns a new List of Sentences which have word sense
labels for each annotation index stored in targetWords. |
protected Synset[] |
getSynsets(OntologyReader reader,
edu.stanford.nlp.pipeline.Annotation annot)
Returns all of the Synsets found given the word and part of
speech information, if present, in annot. |
void |
setup(OntologyReader reader)
Initializes the WordSenseDisambiguation algorithm with the given
OntologyReader. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FirstSenseDisambiguation()
| Method Detail |
|---|
public void setup(OntologyReader reader)
WordSenseDisambiguation algorithm with the given
OntologyReader. Any other configuration values should be set via
the global system properties object.
setup in interface WordSenseDisambiguationpublic Sentence disambiguate(Sentence sentence)
List of s which have word sense
labels for each noun found in sentences.
disambiguate in interface WordSenseDisambiguation
public Sentence disambiguate(Sentence sentence,
Set<Integer> focusIndices)
List of Sentences which have word sense
labels for each annotation index stored in targetWords.
disambiguate in interface WordSenseDisambiguationpublic String toString()
toString in class Object
protected Synset[] getSynsets(OntologyReader reader,
edu.stanford.nlp.pipeline.Annotation annot)
Synsets found given the word and part of
speech information, if present, in annot. If the part of speech
is available, but provides no synsets, all possible synsets are returned
for the word, under the assumption that the tag may be incorrect.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||