edu.stanford.nlp.parser.lexparser
Class GermanUnknownWordModel

java.lang.Object
  extended by edu.stanford.nlp.parser.lexparser.GermanUnknownWordModel
All Implemented Interfaces:
Serializable

public class GermanUnknownWordModel
extends Object
implements Serializable

An unknown word model for German.

Author:
Roger Levy, Greg Donaker (corrections and modeling improvements), Christopher Manning (generalized and improved what Greg did)
See Also:
Serialized Form

Constructor Summary
GermanUnknownWordModel(Options.LexOptions op)
           
 
Method Summary
 double score(IntTaggedWord itw)
           
 double score(TaggedWord tw)
          Calculate the log-prob score of a particular TaggedWord in the unknown word model.
 void train(Collection<Tree> trees)
          trains the end-character based unknown word model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GermanUnknownWordModel

public GermanUnknownWordModel(Options.LexOptions op)
Method Detail

score

public double score(IntTaggedWord itw)

score

public double score(TaggedWord tw)
Calculate the log-prob score of a particular TaggedWord in the unknown word model.

Parameters:
tw - the tag->word production in TaggedWord form
Returns:
The log-prob score of a particular TaggedWord.

train

public void train(Collection<Tree> trees)
trains the end-character based unknown word model.

Parameters:
trees - the collection of trees to be trained over


Stanford NLP Group