edu.stanford.nlp.parser.dvparser
Class UnknownWordPrinter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnknownWordPrinter
public UnknownWordPrinter(DVModel model)
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