edu.stanford.nlp.parser.lexparser
Class UnknownGTTrainer

java.lang.Object
  extended by 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)

Constructor Summary
UnknownGTTrainer()
           
 
Method Summary
 void finishTraining()
           
 void train(java.util.Collection<Tree> trees)
           
 void train(java.util.Collection<Tree> trees, double weight)
           
 void train(TaggedWord tw, double weight)
           
 void train(Tree tree, double weight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnknownGTTrainer

public UnknownGTTrainer()
Method Detail

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