penn-treebank

Extracting Function Tags from Parsed Sentence (using Stanford Parser)

时光怂恿深爱的人放手 提交于 2019-12-12 19:38:51
问题 Looking at the Penn Treebank tagset (http://web.mit.edu/6.863/www/PennTreebankTags.html#RB) there is a section called "Function Tags" that would be extremely helpful for a project I am working on. I know the Stanford Parser uses the Penn Treebank tagset for its EnglishPCFG grammar so I am hoping there is support for Function Tags. Using the Stanford Parser and NLTK I have parsed sentences with Clause, Phrase and Word level tags as well as Universal Dependencies, but I have not found a way to

How to generate sentiment treebank in Stanford NLP

 ̄綄美尐妖づ 提交于 2019-12-12 04:23:02
问题 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. 回答1: 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: java -Xmx8g edu