public class ChineseUnknownWordModelTrainer extends AbstractUnknownWordModelTrainer
NULL_ITW, nullTag, nullWord, unknown| Constructor and Description |
|---|
ChineseUnknownWordModelTrainer() |
| Modifier and Type | Method and Description |
|---|---|
UnknownWordModel |
finishTraining()
Returns the trained UWM.
|
void |
initializeTraining(Options op,
Lexicon lex,
Index<java.lang.String> wordIndex,
Index<java.lang.String> tagIndex,
double totalTrees)
Initialize the trainer with a few of the data structures it needs
to train.
|
void |
train(TaggedWord tw,
int loc,
double weight)
Trains the first-character based unknown word model.
|
incrementTreesRead, train, train, trainpublic void initializeTraining(Options op, Lexicon lex, Index<java.lang.String> wordIndex, Index<java.lang.String> tagIndex, double totalTrees)
UnknownWordModelTrainerinitializeTraining in interface UnknownWordModelTrainerinitializeTraining in class AbstractUnknownWordModelTrainerpublic void train(TaggedWord tw, int loc, double weight)
tw - The word we are currently training onloc - The position of that wordweight - The weight to give this word in terms of trainingpublic UnknownWordModel finishTraining()
UnknownWordModelTrainer