|
|||||||||
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 TreeReader
null
at end of file.
java.io.IOException
public void close() throws java.io.IOException
TreeReader
.
close
in interface TreeReader
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |