R:Stanford CoreNLP 为 getSentiment 返回 NA

R: Stanford CoreNLP returnning NAs for getSentiment

我有以下文本数据:

I always prefer old-school guy. I have a PhD degree in science. I am really not interested in finding someone with the same background, otherwise life is gonna be boring.

我正在尝试提取上述文本的情感分数,但我得到的都是 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

它给了我一个答案,所以我不知道为什么会这样。如果有人能提供一些见解,将不胜感激。

希望你现在已经找到了这个,但对于你和其他人来说,这是一个已知的错误,已在 GitHub 版本中修复,请参见此处:https://github.com/statsmaths/coreNLP/issues/9