I am able to get the output of Tags and words for the sentence like "My name is Rahul." as
My/PRP$, name/NN, is/VBZ, Rahul/NNP, ./.]
with the program:
LexicalizedParser lp = LexicalizedParser.loadModel(
"edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz"
);
lp.setOptionFlags(new String[]{"-maxLength", "80", "-retainTmpSubcategories"});
String sent = "My name is Rahul";
Tree parse = (Tree) lp.apply(sent);
List taggedWords = parse.taggedYield();
System.out.println(taggedWords);
But, I also need to get the parse score of the sentence. Is there any kind of modification that I can do to my program to get the parse score?
Thanks.