public class FrenchUnknownWordModelTrainer extends AbstractUnknownWordModelTrainer
NULL_ITW, nullTag, nullWord, unknown
Constructor and Description |
---|
FrenchUnknownWordModelTrainer() |
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 this lexicon on the Collection of trees.
|
incrementTreesRead, train, train, train
public void initializeTraining(Options op, Lexicon lex, Index<java.lang.String> wordIndex, Index<java.lang.String> tagIndex, double totalTrees)
UnknownWordModelTrainer
initializeTraining
in interface UnknownWordModelTrainer
initializeTraining
in class AbstractUnknownWordModelTrainer
public void train(TaggedWord tw, int loc, double weight)
public UnknownWordModel finishTraining()
UnknownWordModelTrainer