public class EvaluateTreebank
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Function<java.util.List<? extends HasWord>,java.util.ArrayList<TaggedWord>> |
tagger
The tagger optionally used before parsing.
|
| Constructor and Description |
|---|
EvaluateTreebank(LexicalizedParser parser) |
EvaluateTreebank(Options op,
Lexicon lex,
LexicalizedParser pqFactory) |
| Modifier and Type | Method and Description |
|---|---|
double |
getLBScore() |
double |
getTagScore() |
void |
processResults(ParserQuery pq,
Tree goldTree,
java.io.PrintWriter pwErr,
java.io.PrintWriter pwOut,
java.io.PrintWriter pwFileOut,
java.io.PrintWriter pwStats,
TreePrint treePrint) |
double |
testOnTreebank(Treebank testTreebank)
Test the parser on a treebank.
|
protected Function<java.util.List<? extends HasWord>,java.util.ArrayList<TaggedWord>> tagger
public EvaluateTreebank(LexicalizedParser parser)
public EvaluateTreebank(Options op, Lexicon lex, LexicalizedParser pqFactory)
public double getLBScore()
public double getTagScore()
public void processResults(ParserQuery pq, Tree goldTree, java.io.PrintWriter pwErr, java.io.PrintWriter pwOut, java.io.PrintWriter pwFileOut, java.io.PrintWriter pwStats, TreePrint treePrint)
public double testOnTreebank(Treebank testTreebank)
op.testOptions.verbose is true.testTreebank - The treebank to parse