public interface LexicalSmoother
A lexical smoother computes the lexically smoothed probabability of a word given a part of speech tag, e.g., p( word | tag ).
Modifier and Type | Method and Description |
---|---|
int |
cachedProbabilitiesCount()
Get the number of cached lexical probabilities.
|
void |
clearCachedProbabilities()
Clear cached probabilities..
|
Probability |
lexicalProbability(java.lang.String word,
java.lang.String tag)
Get lexically smoothed probability of a word given a tag.
|
void |
setPartOfSpeechTagger(PartOfSpeechTagger posTagger)
Set the part of speech tagger for this smoother.
|
void setPartOfSpeechTagger(PartOfSpeechTagger posTagger)
posTagger
- Part of speech tagger for which
this smoother provides probabilities.int cachedProbabilitiesCount()
void clearCachedProbabilities()
Probability lexicalProbability(java.lang.String word, java.lang.String tag)
word
- The word.tag
- The part of speech tag.