Skip to content

Commit

Permalink
Add some doc to EvaluateTreebank
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Feb 16, 2024
1 parent 3499d27 commit 7180285
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/edu/stanford/nlp/parser/metrics/EvaluateTreebank.java
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,12 @@ public void summarize(PrintWriter pwErr, TreebankLanguagePack tlp) {
}
}

/**
* Wrapper for a dataset which was already parsed, such as that passed in to EvaluateExternalParser.
* <br>
* Using this and the EvaluationDataset in general allows for scoring already known results and
* the results of a parser on raw text with the same codepaths
*/
public static class PreparsedEvaluationDataset implements EvaluationDataset {
List<Pair<ParserQuery, Tree>> testTreebank;

Expand Down

0 comments on commit 7180285

Please sign in to comment.