Class 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 Detail

      • OutputSubtrees

        public OutputSubtrees()