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

edu.stanford.nlp.trees.TreeReader 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.trees;

import java.io.Closeable;
import java.io.IOException;

/**
 * A TreeReader adds functionality to another Reader
 * by reading in Trees, or some descendant class.
 *
 * @author Christopher Manning
 * @author Roger Levy (mod. 2003/01)
 * @version 2003/01
 */
public interface TreeReader extends Closeable {

  /**
   * Reads a single tree.
   *
   * @return A single tree, or null at end of file.
   * @throws java.io.IOException If I/O problem
   */
  public Tree readTree() throws IOException;


  /**
   * Close the Reader behind this TreeReader.
   */
  @Override
  public void close() throws IOException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy