Skip to content

ViennaR/SentimentAnalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License SentimentAnalyis

SentimentAnalyis calculates the sentiment from (tm text corpora based on simple word counts. The package already includes sentiment dictionaries from various sources including e.g. Harvard-IV, Loughran-McDonald and supports user specified ones.

THIS PACKAGE IS UNDER ACTIVE DEVELOPMENT AND NOT READY FOR TESTING - HOWEVER SUGGESTIONS ARE HIGHLY WELCOME !!!

Install

Using the devtools package you can easily install the latest development version of tm.plugin.sentiment from github with

library(devtools)
install_github("mannau/tm.plugin.sentiment")

Usage

The following lines show the basic functionality calculating the sentiment for the Apple (AAPL) stock:

library(tm.plugin.sentiment)

# retrieve corpus
require(tm.plugin.webmining)
corp = WebCorpus(GoogleFinanceSource("AAPL"))

# score corpus
corp <- score(corp)
sentixts <- metaXTS(corp)

# chart sentiment scores
chartSentiment(sentixts)

License

tm.plugin.sentiment is released under the GNU General Public License Version 3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published