| Modifier and Type | Field and Description |
|---|---|
static WordSequence |
WordSequence.EMPTY
an empty word sequence, that is, it has no words.
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<WordSequence> |
WordSequence.OLDEST_COMPARATOR
Comparator that compares two sequences by their oldest part.
|
| Modifier and Type | Method and Description |
|---|---|
WordSequence |
WordSequence.addWord(Word word,
int maxSize)
Returns a new word sequence with the given word added to the sequence
|
static WordSequence |
WordSequence.asWordSequence(Dictionary dictionary,
java.lang.String... words) |
WordSequence |
WordSequence.getNewest()
Returns the newest words in the sequence (the old word is omitted)
|
WordSequence |
WordSequence.getOldest()
Returns the oldest words in the sequence (the newest word is omitted)
|
WordSequence |
WordSequence.getSubSequence(int startIndex,
int stopIndex) |
WordSequence |
SearchState.getWordHistory()
Gets the word history for this state
|
WordSequence |
WordSequence.trim(int maxSize)
Returns a word sequence that is no longer than the given size, that is
filled in with the newest words from this sequence
|
| Modifier and Type | Method and Description |
|---|---|
int |
WordSequence.compareTo(WordSequence other) |
| Modifier and Type | Method and Description |
|---|---|
WordSequence |
PhoneNonEmittingSearchState.getWordHistory() |
WordSequence |
PhoneHmmSearchState.getWordHistory() |
| Modifier and Type | Method and Description |
|---|---|
WordSequence |
SentenceHMMState.getWordHistory()
Gets the word history for this state.
|
| Modifier and Type | Method and Description |
|---|---|
float |
ClassBasedLanguageModel.getProbability(WordSequence wordSequence)
Actual implementation of the class-based LM: P=P(W|C1)*P(C1|C2,C3..)
|
float |
ClassBasedLanguageModel.getSmear(WordSequence wordSequence)
Gets the smear term for the given wordSequence
|
| Modifier and Type | Method and Description |
|---|---|
java.util.LinkedList<WordSequence> |
SimpleNGramModel.getNGrams()
Returns a list of all the word sequences in the language model This
method is used to create Finite State Transducers of the language model.
|
| Modifier and Type | Method and Description |
|---|---|
float |
SimpleNGramModel.getBackoff(WordSequence wordSequence)
Returns the backoff probability for the give sequence of words
|
float |
SimpleNGramModel.getProbability(WordSequence wordSequence)
Gets the ngram probability of the word sequence represented by the word
list
|
float |
NetworkLanguageModel.getProbability(WordSequence wordSequence) |
float |
LanguageModel.getProbability(WordSequence wordSequence)
Gets the n-gram probability of the word sequence represented by the word
list
|
float |
KeywordOptimizerModel.getProbability(WordSequence wordSequence)
Gets the ngram probability of the word sequence represented by the word
list
|
float |
InterpolatedLanguageModel.getProbability(WordSequence wordSequence)
Calculates probability p = w[1]*p[1] + w[2]*p[2] + ...
|
float |
DynamicTrigramModel.getProbability(WordSequence wordSequence) |
float |
SimpleNGramModel.getSmear(WordSequence wordSequence)
Gets the smear term for the given wordSequence
|
float |
NetworkLanguageModel.getSmear(WordSequence wordSequence) |
float |
LanguageModel.getSmear(WordSequence wordSequence)
Gets the smear term for the given wordSequence.
|
float |
KeywordOptimizerModel.getSmear(WordSequence wordSequence)
Gets the smear term for the given wordSequence
|
float |
InterpolatedLanguageModel.getSmear(WordSequence wordSequence) |
float |
DynamicTrigramModel.getSmear(WordSequence wordSequence) |
| Modifier and Type | Method and Description |
|---|---|
float |
LargeNGramModel.getProbability(WordSequence wordSequence)
Gets the ngram probability of the word sequence represented by the word
list
|
float |
KeywordOptimizerLargeNGramModel.getProbability(WordSequence wordSequence)
Gets the ngram probability of the word sequence represented by the word list
|
float |
LargeNGramModel.getSmear(WordSequence wordSequence) |
float |
LargeNGramModel.getSmearOld(WordSequence wordSequence)
Gets the smear term for the given wordSequence
|
| Modifier and Type | Method and Description |
|---|---|
float |
NgramTrieModel.getProbability(WordSequence wordSequence)
Gets the ngram probability of the word sequence represented by the word
list
|
float |
NgramTrieModel.getSmear(WordSequence wordSequence)
Gets the smear term for the given wordSequence
|