public interface LanguageModel
sequence of tokens, given its underlying vocabulary.| Modifier and Type | Method and Description |
|---|---|
double |
calculateProbability(StringList tokens)
Calculate the probability of a series of tokens (e.g.
|
StringList |
predictNextTokens(StringList tokens)
Predict the most probable output sequence of tokens, given an input sequence of tokens
|
double calculateProbability(StringList tokens)
tokens - the text tokens to calculate the probability forStringList predictNextTokens(StringList tokens)
tokens - a sequence of tokensCopyright © 2017 The Apache Software Foundation. All rights reserved.