I am newbie to Natural Language processing.I need to extract the noun phrases from the text.So far i have used open nlp\'s chunking parser for parsing my text to get the Tre
The Parse object is a tree; you can use getParent() and getChildren() and getType() to navigate the tree.
Parse
getParent()
getChildren()
getType()
List nounPhrases; public void getNounPhrases(Parse p) { if (p.getType().equals("NP")) { nounPhrases.add(p); } for (Parse child : p.getChildren()) { getNounPhrases(child); } }