2016-05-19 36 views
0

有没有twitter的任何情感模型?我使用斯坦福NLP进行情绪分析,但如果有任何不合语法的句子问题,它总会给出负面结果。这可能是由基于电影评论的默认训练模型造成的。所以,我需要像那些在Twitter的非结构化或不合语法的句子训练有素的情绪模式,我可以设置“sentiment.model'like这样的:使用斯坦福NLP寻找twitter的情感模型

Properties props = new Properties(); 
props.setProperty("annotators", "tokenize, ssplit, parse,sentiment");  
props.put("sentiment.model", "sentiment.ser.gz");  
pipeline = new StanfordCoreNLP(props); 

回答