All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.nlp.parser.metrics.ParserQueryEval Maven / Gradle / Ivy

Go to download

Stanford Parser processes raw text in English, Chinese, German, Arabic, and French, and extracts constituency parse trees.

There is a newer version: 3.9.2
Show newest version
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);
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy