|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.trees.FilteringTreeReader
public class FilteringTreeReader
A FilteringTreeReader filters the output of another TreeReader.
It applies a Filter<Tree> to each returned tree and only returns trees
that are accepted by the Filter. The Filter should accept trees that it
wants returned.
| Constructor Summary | |
|---|---|
FilteringTreeReader(TreeReader tr,
Filter<Tree> f)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the Reader behind this TreeReader. |
Tree |
readTree()
Reads a single tree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilteringTreeReader(TreeReader tr,
Filter<Tree> f)
| Method Detail |
|---|
public Tree readTree()
throws java.io.IOException
readTree in interface TreeReadernull at end of file.
java.io.IOException - If I/O problem
public void close()
throws java.io.IOException
TreeReader.
close in interface TreeReaderclose in interface java.io.Closeablejava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||