edu.upenn.cis.ptb.standoff.util
Class SPTBTask
java.lang.Object
edu.upenn.cis.ptb.standoff.util.SPTBTask
- public class SPTBTask
- extends java.lang.Object
Utility class for iterating over the PTB.
....
for(PTBTask task = new PTBTask(ptbRoot); task.hasNext(); ){
PTBTreeNode root = task.next();
....
}
- Since:
- 0.2.3
- Author:
- nikhild
|
Constructor Summary |
SPTBTask(java.lang.String ptbRoot)
Creates a new instance of PTBTask |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SPTBTask
public SPTBTask(java.lang.String ptbRoot)
- Creates a new instance of PTBTask
hasNext
public boolean hasNext()
next
public PTBTreeNode next()
throws java.io.IOException
- Throws:
java.io.IOException
getSecNo
public int getSecNo()
getSecNoStr
public java.lang.String getSecNoStr()
getFileNo
public int getFileNo()
getFileNoStr
public java.lang.String getFileNoStr()