edu.stanford.nlp.parser.dvparser
Class UnknownWordPrinter

java.lang.Object
  extended by edu.stanford.nlp.parser.dvparser.UnknownWordPrinter
All Implemented Interfaces:
Eval

public class UnknownWordPrinter
extends java.lang.Object
implements Eval

Prints out words which are unknown to the DVParser.
This does not have to be specific to the DVParser. We could easily add an interface which lets it call something to ask if the word is known or not, and if not, keeps track of those words.

Author:
John Bauer

Constructor Summary
UnknownWordPrinter(DVModel model)
           
 
Method Summary
 void display(boolean verbose)
           
 void display(boolean verbose, java.io.PrintWriter pw)
           
 void evaluate(Tree guess, Tree gold)
           
 void evaluate(Tree guess, Tree gold, java.io.PrintWriter pw)
           
 void evaluate(Tree guess, Tree gold, java.io.PrintWriter pw, double weight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnknownWordPrinter

public UnknownWordPrinter(DVModel model)
Method Detail

evaluate

public void evaluate(Tree guess,
                     Tree gold)
Specified by:
evaluate in interface Eval

evaluate

public void evaluate(Tree guess,
                     Tree gold,
                     java.io.PrintWriter pw)
Specified by:
evaluate in interface Eval

evaluate

public void evaluate(Tree guess,
                     Tree gold,
                     java.io.PrintWriter pw,
                     double weight)
Specified by:
evaluate in interface Eval

display

public void display(boolean verbose)
Specified by:
display in interface Eval

display

public void display(boolean verbose,
                    java.io.PrintWriter pw)
Specified by:
display in interface Eval


Stanford NLP Group