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