library(stansent)
check_setup()
#>
#> checking if Java is installed...
#>
#> checking if Java is installed...
#> java version "1.8.0_171"
#> Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
#> Java HotSpot(TM) Client VM (build 25.171-b11, mixed mode, sharing)
#> checking minimal Java version...
#> Java appears to be installed and at least of the minimal version.
#> checking if coreNLP is installed...
#> Stanford coreNLP appears to be installed.
#> ...Let the NLP tagging begin!
> mytext <- c(
'do you like it? But I hate really bad dogs',
'I am the best friend.',
'Do you really like it? I\'m not a fan'
)
>
> out1 <- sentiment_stanford(mytext)
#> Warning message:
#> running command 'java -cp "P:/stanford-corenlp-full-2017-06-09/*" -mx5g edu.stanford.nlp.sentiment.SentimentPipeline
#> -stdin' had status 1
I tried installing stanford-corenlp-full-2017-06-09 in the R library stansent folder, but to no avail.
Look forward to your advise.
Thanks!