opennlp.tools.coref.mention
Interface Dictionary

All Known Implementing Classes:
JWNLDictionary

public interface Dictionary

Interface to provide dictionary information to the coreference module assuming a hierarchically structured dictionary (such as WordNet) is available.


Method Summary
 String[] getLemmas(String word, String pos)
          Returns the lemmas of the specified word with the specified part-of-speech.
 int getNumSenses(String lemma, String pos)
          Returns the number of senses in the dictionary for the specified lemma.
 String[] getParentSenseKeys(String lemma, 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.
 String getSenseKey(String lemma, String pos, int senseNumber)
          Returns a key indicating the specified sense number of the specified lemma with the specified part-of-speech.
 

Method Detail

getLemmas

String[] getLemmas(String word,
                   String pos)
Returns the lemmas of the specified word with the specified part-of-speech.

Parameters:
word - The word whose lemmas are desired.
pos - The part-of-speech of the specified word.
Returns:
The lemmas of the specified word given the specified part-of-speech.

getSenseKey

String getSenseKey(String lemma,
                   String pos,
                   int senseNumber)
Returns a key indicating the specified sense number of the specified lemma with the specified part-of-speech.

Parameters:
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.
Returns:
a key indicating the specified sense number of the specified lemma with the specified part-of-speech.

getNumSenses

int getNumSenses(String lemma,
                 String pos)
Returns the number of senses in the dictionary for the specified lemma.

Parameters:
lemma - A lemmatized form of the word to look up.
pos - The part-of-speech for the lemma.
Returns:
the number of senses in the dictionary for the specified lemma.

getParentSenseKeys

String[] getParentSenseKeys(String lemma,
                            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.

Parameters:
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.
Returns:
an array of keys for each parent of the specified sense number of the specified lemma with the specified part-of-speech.


Copyright © 2010. All Rights Reserved.