public class FrenchXMLTreeReader extends Object implements TreeReader
Handles multiword expressions (MWEs).
One difference worth documenting between this and the PennTreeReader is that this does not unescape \* and \/ the way the PennTreeReader does. The French Treebank we are using does not use those escapings.
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_LEAF |
static String |
MISSING_PHRASAL |
static String |
MISSING_POS |
| Constructor and Description |
|---|
FrenchXMLTreeReader(Reader in,
boolean ccTagset)
Read parse trees from a Reader.
|
FrenchXMLTreeReader(Reader in,
TreeFactory tf,
TreeNormalizer tn)
Read parse trees from a Reader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the Reader behind this
TreeReader. |
static void |
main(String[] args)
For debugging.
|
Tree |
readTree()
Reads a single tree.
|
public static final String EMPTY_LEAF
public static final String MISSING_PHRASAL
public static final String MISSING_POS
public FrenchXMLTreeReader(Reader in, boolean ccTagset)
in - The Readerpublic FrenchXMLTreeReader(Reader in, TreeFactory tf, TreeNormalizer tn)
in - Readertf - TreeFactory -- factory to create some kind of Treetn - the method of normalizing treespublic void close()
TreeReaderTreeReader.close in interface TreeReaderclose in interface Closeableclose in interface AutoCloseablepublic Tree readTree()
TreeReaderreadTree in interface TreeReadernull at end of file.public static void main(String[] args)
args -