edu.stanford.nlp.parser.metrics.ParserQueryEval Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stanford-parser Show documentation
Show all versions of stanford-parser Show documentation
Stanford Parser processes raw text in English, Chinese, German, Arabic, and French, and extracts constituency parse trees.
package edu.stanford.nlp.parser.metrics;
import java.io.PrintWriter;
import edu.stanford.nlp.parser.common.ParserQuery;
import edu.stanford.nlp.trees.Tree;
/**
* Evaluate based on the ParserQuery rather than the Tree produced
*
* @author John Bauer
*/
public interface ParserQueryEval {
public void evaluate(ParserQuery query, Tree gold, PrintWriter pw);
/**
* Called after the evaluation is finished. While that generally
* means you want to display final stats here, you can also use this
* as a chance to close open files, etc
*/
public void display(boolean verbose, PrintWriter pw);
}