edu.upenn.cis.ptb
Interface PTBLoader

All Known Implementing Classes:
PTBLoaderImpl, SPTBLoaderImpl

public interface PTBLoader

Loads a file containing a list of parse trees. The parse trees occur as children of the node returned by the load methods. This "root" node has a label with type=root.

Author:
nikhild

Method Summary
 PTBTreeNode load(java.io.Reader reader)
          Load from reader which will be closed after reading.
 PTBTreeNode load(java.lang.String ptbFileName)
          Load the file with the given fileName.
 PTBTreeNode load(java.lang.String ptbRoot, java.lang.String secNo, java.lang.String fileNo)
          Load the file ptbRoot/ + secNo + /wsj_ + secNo + fileNo + .mrg.
 

Method Detail

load

public PTBTreeNode load(java.io.Reader reader)
                 throws java.io.IOException
Load from reader which will be closed after reading.

Throws:
java.io.IOException

load

public PTBTreeNode load(java.lang.String ptbFileName)
                 throws java.io.IOException
Load the file with the given fileName.

Throws:
java.io.IOException

load

public PTBTreeNode load(java.lang.String ptbRoot,
                        java.lang.String secNo,
                        java.lang.String fileNo)
                 throws java.io.IOException
Load the file ptbRoot/ + secNo + /wsj_ + secNo + fileNo + .mrg.

Throws:
java.io.IOException