Get parse tree of a sentence using OpenNLP. Getting stuck with example.
问题 OpenNLP is an Apache project on Natural Language Processing. One of the aims of an NLP program is to parse a sentence giving a tree of its grammatical structure. For example, the sentence "The sky is blue." might be parsed as S / \ NP VP / \ | \ The sky is blue. where S is Sentence, NP is Noun-phrase, and VP is Verb-phrase. Equivalently the above tree can be written down as a parenthesized string like this: S(NP(The sky) VP(is blue.)) I am trying to be able to get the parenthesized strings