How to extract SVO using NLP in java, I am new to nlp.i, currently using opennlp. but how to do in java with perticular in a java sentence.
LexicalizedParser lp = **new LexicalizedParser("englishPCFG.ser.gz");**
String[] sent = { "This", "is", "an", "easy", "sentence", "." };
Tree parse = (Tree) lp.apply(Arrays.asList(sent));
parse.pennPrint();
System.out.println();
TreePrint tp = new TreePrint("penn,typedDependenciesCollapsed");
tp.print(parse);
receiving a compilation error with the new LexicalizedParser ("englishPCFG.ser.gz"); ** LexicalizedParser (String) constructor is undefined
source
share