|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.trees.international.french.FrenchTreeReader
public class FrenchTreeReader
A reader for XML format French Treebank files. Note that the raw XML files are in ISO-8859-1 format, so they must be converted to UTF-8.
Handles multiword expressions (MWEs).
| Field Summary | |
|---|---|
static java.lang.String |
EMPTY_LEAF
|
static java.lang.String |
MISSING_PHRASAL
|
static java.lang.String |
MISSING_POS
|
| Constructor Summary | |
|---|---|
FrenchTreeReader(java.io.Reader in)
Read parse trees from a Reader. |
|
FrenchTreeReader(java.io.Reader in,
TreeFactory tf,
TreeNormalizer tn)
Read parse trees from a Reader. |
|
| Method Summary | |
|---|---|
void |
close()
Close the Reader behind this TreeReader. |
static void |
main(java.lang.String[] args)
For debugging. |
Tree |
readTree()
Reads a single tree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EMPTY_LEAF
public static final java.lang.String MISSING_PHRASAL
public static final java.lang.String MISSING_POS
| Constructor Detail |
|---|
public FrenchTreeReader(java.io.Reader in)
in - The Reader
public FrenchTreeReader(java.io.Reader in,
TreeFactory tf,
TreeNormalizer tn)
in - Readertf - TreeFactory -- factory to create some kind of Treetn - the method of normalizing trees| Method Detail |
|---|
public void close()
TreeReaderTreeReader.
close in interface TreeReaderclose in interface java.io.Closeablepublic Tree readTree()
TreeReader
readTree in interface TreeReadernull at end of file.public static void main(java.lang.String[] args)
args -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||