Example usage for Java opennlp.tools.languagemodel NGramLanguageModel fields, constructors, methods, implement or subclass
The text is from its open source code.
NGramLanguageModel() | |
NGramLanguageModel(int n) | |
NGramLanguageModel(InputStream in) | |
NGramLanguageModel(InputStream in, int n) |
void | add(StringList ngram, int minLength, int maxLength) Adds NGrams up to the specified length to the current instance. |
double | calculateProbability(StringList tokens) |
double | calculateProbability(String... tokens) |
StringList | predictNextTokens(StringList tokens) |
String[] | predictNextTokens(String... tokens) |