I'm using Sentiment Stanford NLP library for sentiment analytics.
Now I want to generate a treebank from a sentence
input sentence: "Effective but too-tepid biopic"
output tree bank: (2 (3 (3 Effective) (2 but)) (1 (1 too-tepid) (2 biopic)))
Can anybody show me how to do it ? Thank all.
So I had to push a bug fix for the SentimentPipeline.
If you get the latest code from GitHub and use that version: https://github.com/stanfordnlp/CoreNLP
you can issue this command:
and you'll get output like this: