cran / RSentiment

:exclamation: This is a read-only mirror of the CRAN R package repository. RSentiment — Analyse Sentiment of English Sentences
0 stars 2 forks source link

calculate_score() returns two values for a sentence #2

Closed KKulma closed 7 years ago

KKulma commented 7 years ago

For some reason calculate_score() returns two, usually contradictory, scores per sentence, e.g.

library(RSsentiment)

calculate_score("I don't normally write reviews but feel I must as this book was so bad.") 1 -1

My sessionInfo() may help:

sessionInfo() R version 3.3.2 (2016-10-31) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X El Capitan 10.11.6

locale: [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] RCurl_1.95-4.8 bitops_1.0-6 sentimentr_0.5.4 tidytext_0.1.2 purrr_0.2.2 audio_0.1-5 rvest_0.3.2 xml2_1.1.1
[9] stringr_1.2.0 tidyr_0.6.1 XML_3.98-1.5 RSentiment_2.1.1 dplyr_0.5.0 ggplot2_2.2.1 ggthemes_3.3.0 RPostgres_0.1-4

loaded via a namespace (and not attached): [1] NLP_0.1-10 reshape2_1.4.2 rJava_0.9-8 lattice_0.20-34 colorspace_1.3-2 htmltools_0.3.5 SnowballC_0.5.1
[8] yaml_2.1.14 foreign_0.8-67 textclean_0.3.1 withr_1.0.2 DBI_0.6 selectr_0.3-1 plyr_1.8.4
[15] munsell_0.4.3 gtable_0.2.0 devtools_1.12.0 psych_1.6.12 memoise_1.0.0 evaluate_0.10 labeling_0.3
[22] knitr_1.15.1 parallel_3.3.2 curl_2.3 broom_0.4.1 tokenizers_0.1.4 Rcpp_0.12.9 scales_0.4.1
[29] backports_1.0.5 openNLPdata_1.5.3-2 mnormt_1.5-5 digest_0.6.12 stringi_1.1.2 grid_3.3.2 rprojroot_1.2
[36] tools_3.3.2 magrittr_1.5 lazyeval_0.2.0 tibble_1.2 pacman_0.4.1 janeaustenr_0.1.4 Matrix_1.2-8
[43] data.table_1.10.4 openNLP_0.2-6 assertthat_0.1.0.99 rmarkdown_1.3 httr_1.2.1 R6_2.2.0 nlme_3.1-130

gaborcsardi commented 7 years ago

This is a read-only mirror of CRAN, please see the DESCRIPTION file for the original package authors.

KKulma commented 7 years ago

Where can I report issues, then?

gaborcsardi commented 7 years ago

https://github.com/cran/RSentiment/blob/master/DESCRIPTION#L8

KKulma commented 7 years ago

cheers!