Package edu.stanford.nlp.trees
Class OutputSubtrees
- java.lang.Object
-
- edu.stanford.nlp.trees.OutputSubtrees
-
public class OutputSubtrees extends Object
Output a tree and all of its subtrees. Each subtree is on a separate line, with the start of the line being the top node's label and the rest of the line being the text of the leaves.
One specific use of this is to output the sentiment treebank as a bunch of lines with no tree structure. This is useful for then building a phrase/sentence classifier using that dataset. See scripts/sentiment/convert_sentiment.sh- Author:
- John Bauer
-
-
Constructor Summary
Constructors Constructor Description OutputSubtrees()
-
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
-