CRAN
meanr 0.1-1
Sentiment Analysis Scorer
Released Oct 26, 2017 by Drew Schmidt
Sentiment analysis is a popular technique in text mining. Roughly speaking, the technique is an attempt to determine the overall emotional attitude of a piece of text (i.e., positive or negative). We provide a new implementation of a common method for computing sentiment, whereby words are scored as positive or negative according to a "dictionary", and then an sum of those scores for the document is produced. We use the 'Hu' and 'Liu' sentiment dictionary for determining sentiment. The scoring function is 'vectorized' by document, and scores for multiple documents are computed in parallel via 'OpenMP'.
Installation
Maven
This package can be included as a dependency from a Java or Scala project by including
the following your project's pom.xml
file.
Read more
about embedding Renjin in JVM-based projects.
<dependencies> <dependency> <groupId>org.renjin.cran</groupId> <artifactId>meanr</artifactId> <version>0.1-1-b14</version> </dependency> </dependencies> <repositories> <repository> <id>bedatadriven</id> <name>bedatadriven public repo</name> <url>https://nexus.bedatadriven.com/content/groups/public/</url> </repository> </repositories>
Renjin CLI
If you're using Renjin from the command line, you load this library by invoking:
library('org.renjin.cran:meanr')
Test Results
This package was last tested against Renjin 0.9.2689 on Aug 26, 2018.