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, wait
finishTraining, train
public void initializeTraining(Options op, Lexicon lex, Index<String> wordIndex, Index<String> tagIndex, double totalTrees)
UnknownWordModelTrainer
initializeTraining
in interface UnknownWordModelTrainer
public final void train(Collection<Tree> trees)
UnknownWordModelTrainer
train
in interface UnknownWordModelTrainer
public final void train(Collection<Tree> trees, double weight)
UnknownWordModelTrainer
train
in interface UnknownWordModelTrainer
public final void train(Tree tree, double weight)
UnknownWordModelTrainer
train
in interface UnknownWordModelTrainer
public void incrementTreesRead(double weight)
incrementTreesRead
in interface UnknownWordModelTrainer