public abstract class AbstractUnknownWordModelTrainer extends Object implements UnknownWordModelTrainer
NULL_ITW, nullTag, nullWord, unknown| Constructor and Description |
|---|
AbstractUnknownWordModelTrainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
incrementTreesRead(double weight) |
void |
initializeTraining(Options op,
Lexicon lex,
Index<String> wordIndex,
Index<String> tagIndex,
double totalTrees)
Initialize the trainer with a few of the data structures it needs
to train.
|
void |
train(Collection<Tree> trees)
Tallies statistics for this particular collection of trees.
|
void |
train(Collection<Tree> trees,
double weight)
Tallies statistics for a weighted collection of trees.
|
void |
train(Tree tree,
double weight)
Tallies statistics for a single tree.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinishTraining, trainpublic void initializeTraining(Options op, Lexicon lex, Index<String> wordIndex, Index<String> tagIndex, double totalTrees)
UnknownWordModelTrainerinitializeTraining in interface UnknownWordModelTrainerpublic final void train(Collection<Tree> trees)
UnknownWordModelTrainertrain in interface UnknownWordModelTrainerpublic final void train(Collection<Tree> trees, double weight)
UnknownWordModelTrainertrain in interface UnknownWordModelTrainerpublic final void train(Tree tree, double weight)
UnknownWordModelTrainertrain in interface UnknownWordModelTrainerpublic void incrementTreesRead(double weight)
incrementTreesRead in interface UnknownWordModelTrainer