edu.stanford.nlp.parser.lexparser
Class UnknownGTTrainer
java.lang.Object
edu.stanford.nlp.parser.lexparser.UnknownGTTrainer
public class UnknownGTTrainer
- extends java.lang.Object
This class trains a Good-Turing model for unknown words from a
collection of trees. It builds up a map of statistics which can be
used by any UnknownWordModel which wants to use the GT model.
Authors:
- Author:
- Roger Levy, Greg Donaker (corrections and modeling improvements), Christopher Manning (generalized and improved what Greg did), Anna Rafferty, John Bauer (refactored into a separate training class)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnknownGTTrainer
public UnknownGTTrainer()
train
public void train(java.util.Collection<Tree> trees)
train
public void train(java.util.Collection<Tree> trees,
double weight)
train
public void train(Tree tree,
double weight)
train
public void train(TaggedWord tw,
double weight)
finishTraining
public void finishTraining()
Stanford NLP Group