public class Treebanks
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Loads treebank and prints it.
|
public static void main(java.lang.String[] args) throws java.io.IOException
filePath
within the given
number range if any are loaded.
By default, this class works over raw trees.
You can normalize the trees as we usually do in an English-specific way by using either of the flags:
-normalized
or -trf edu.stanford.nlp.trees.LabeledScoredTreeReaderFactory
.
You can normalize for different treebanks by loading an appropriate TreeReaderFactory.
You can print trees one per line up to a certain length (for EVALB) and many other things.
Usage: java edu.stanford.nlp.trees.Treebanks [-maxLength n|-normalized|-treeReaderFactory class] filePath [numberRanges]
args
- Array of command-line argumentsjava.io.IOException
- If there is a treebank file access problem