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