|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface LanguageModel.Dynamic
A LanguageModel.Dynamic accepts training events in
the form of character slices or sequences. A dynamic language
model should also implement either the LanguageModel.Process interface or the LanguageModel.Sequence interface.
Optionally, a dynamic language model will implement the
Compilable.compileTo(ObjectOutput) method to write a compiled
version of the dynamic language model to an object output stream.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.aliasi.lm.LanguageModel |
|---|
LanguageModel.Conditional, LanguageModel.Dynamic, LanguageModel.Process, LanguageModel.Sequence, LanguageModel.Tokenized |
| Method Summary | |
|---|---|
void |
train(char[] cs,
int start,
int end)
Update the model with the training data provided by the specified character slice. |
void |
train(char[] cs,
int start,
int end,
int count)
Update the model with the training data provided by the specified character sequence with the specifiedc count. |
void |
train(CharSequence cs)
Update the model with the training data provided by the specified character sequence with a count of one. |
void |
train(CharSequence cs,
int count)
Update the model with the training data provided by the specified character sequence with the specified count. |
| Methods inherited from interface com.aliasi.util.Compilable |
|---|
compileTo |
| Methods inherited from interface com.aliasi.lm.LanguageModel |
|---|
log2Estimate, log2Estimate |
| Method Detail |
|---|
void train(CharSequence cs)
cs - The character sequence to use as training data.
void train(CharSequence cs,
int count)
train(cs,n) is equivalent
to calling train(cs) a total of n
times.
cs - The character sequence to use as training data.count - Number of instances to train.
void train(char[] cs,
int start,
int end)
cs - The underlying character array for the slice.start - Index of first character in the slice.end - Index of one plus the last character in the
training slice.
IndexOutOfBoundsException - If the end index minus
one and the start index are not in the range of the
character slice.
void train(char[] cs,
int start,
int end,
int count)
train(cs,n) is equivalent
to calling train(cs) a total of
n times.
/**
Update the model with the training data provided by
the specified character slice.
cs - The underlying character array for the slice.start - Index of first character in the slice.end - Index of one plus the last character in the
training slice.count - Number of instances to train.
IndexOutOfBoundsException - If the end index minus
one and the start index are not in the range of the
character slice.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||