|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LexicalSmoother
Interface for a lexical smoother.
A lexical smoother computes the lexically smoothed probabability of a word given a part of speech tag, e.g., p( word | tag ).
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||