edu.stanford.nlp.trees
Interface TreeReader

All Known Implementing Classes:
FragDiscardingPennTreeReader, PennTreeReader

public interface TreeReader

A TreeReader adds functionality to another Reader by reading in Trees, or some descendant class.

Author:
Christopher Manning, Roger Levy (mod. 2003/01)

Method Summary
 void close()
          Close the Reader behind this TreeReader.
 Tree readTree()
          Reads a single tree.
 

Method Detail

readTree

Tree readTree()
              throws java.io.IOException
Reads a single tree.

Returns:
A single tree, or null at end of file.
Throws:
java.io.IOException

close

void close()
           throws java.io.IOException
Close the Reader behind this TreeReader.

Throws:
java.io.IOException


Stanford NLP Group