|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Dictionary
Interface to provide dictionary information to the coreference module assuming a hierarchically structured dictionary (such as WordNet) is available.
| Method Summary | |
|---|---|
java.lang.String[] |
getLemmas(java.lang.String word,
java.lang.String pos)
Returns the lemmas of the specified word with the specified part-of-speech. |
int |
getNumSenses(java.lang.String lemma,
java.lang.String pos)
Returns the number of senses in the dictionary for the specified lemma. |
java.lang.String[] |
getParentSenseKeys(java.lang.String lemma,
java.lang.String pos,
int senseNumber)
Returns an array of keys for each parent of the specified sense number of the specified lemma with the specified part-of-speech. |
java.lang.String |
getSenseKey(java.lang.String lemma,
java.lang.String pos,
int senseNumber)
Returns a key indicating the specified sense number of the specified lemma with the specified part-of-speech. |
| Method Detail |
|---|
java.lang.String[] getLemmas(java.lang.String word,
java.lang.String pos)
word - The word whose lemmas are desired.pos - The part-of-speech of the specified word.
java.lang.String getSenseKey(java.lang.String lemma,
java.lang.String pos,
int senseNumber)
lemma - The lemmas for which the key is desired.pos - The pos for which the key is desired.senseNumber - The sense number for which the key is desired.
int getNumSenses(java.lang.String lemma,
java.lang.String pos)
lemma - A lemmatized form of the word to look up.pos - The part-of-speech for the lemma.
java.lang.String[] getParentSenseKeys(java.lang.String lemma,
java.lang.String pos,
int senseNumber)
lemma - A lemmatized form of the word to look up.pos - The part-of-speech for the lemma.senseNumber - The sense number for which the parent keys are desired.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||