我有以下文字数据:
我总是喜欢老派的家伙。我拥有科学博士学位。我是 真的不想找到具有相同背景的人, 否则生活会很无聊。
我试图提取上述文本的情绪分数,但我得到的是所有的NA。
dating3 = annotateString(bio)
bio.emo = getSentiment(dating3)
id sentimentValue sentiment
1 1 NA NA
2 2 NA NA
3 3 NA NA
我不知道为什么会出现和谷歌搜索,但没有找到任何相关的答案。与此同时,当我尝试coreNLP包中提供的样本数据时
getSentiment(annoHp)
id sentimentValue sentiment
1 1 4 Verypositive
它给了我答案,所以我不知道为什么会这样。如果有人能提供一些见解,我将非常感激。
答案 0 :(得分:1)
希望现在你已经找到了这个,但对于你和其他任何人来说,这是一个已知的错误,修复了GitHub版本,请参见此处:https://github.com/statsmaths/coreNLP/issues/9