R: Stanford CoreNLP returnning NAs for getSentiment -


i have following text data:

i prefer old-school guy. have phd degree in science. not interested in finding same background, otherwise life gonna boring.

and trying extract out sentiment scores of above text, nas.

 dating3 = annotatestring(bio)  bio.emo = getsentiment(dating3)     id sentimentvalue sentiment 1   1             na        na 2   2             na        na 3   3             na        na 

i not know why occuring , googled around did not find relevant answers. in meantime, when tried sample data provided within corenlp package

 getsentiment(annohp)     id sentimentvalue    sentiment 1  1              4 verypositive 

it gives me answer, don't know why happening. appreciate if can offer insight.

hopefully have found , else, known bug fixed on github version, see here: https://github.com/statsmaths/corenlp/issues/9


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -