|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.trees.PennTreeReader
edu.stanford.nlp.trees.international.pennchinese.FragDiscardingPennTreeReader
public class FragDiscardingPennTreeReader
Constructor Summary | |
---|---|
FragDiscardingPennTreeReader(java.io.Reader in,
TreeFactory tf,
TreeNormalizer tn,
Tokenizer<java.lang.String> tk)
|
Method Summary | |
---|---|
Tree |
readTree()
Reads a single tree in standard Penn Treebank format from the input stream. |
Methods inherited from class edu.stanford.nlp.trees.PennTreeReader |
---|
close, main |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FragDiscardingPennTreeReader(java.io.Reader in, TreeFactory tf, TreeNormalizer tn, Tokenizer<java.lang.String> tk)
Method Detail |
---|
public Tree readTree() throws java.io.IOException
PennTreeReader
IOException
.
Note that the method will skip malformed trees and attempt to
read additional trees from the input stream. It is possible, however,
that a malformed tree will corrupt the token stream. In this case,
an IOException
will eventually be thrown.
readTree
in interface TreeReader
readTree
in class PennTreeReader
null
at end of token stream.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |