Sentiment analysis in R (not using tm.plugin.tags)

无人久伴 提交于 2019-12-01 19:02:22

问题


I'm using R version 3.0.2 and have installed the package tm. Previously, I also loaded a package called tm.plugin.tags. To get a measure of whether a text corpus was positive or negative I used the following approach:

library('tm')
library('tm.plugin.tags')

pos <- tm_tag_score(TermDocumentMatrix(corpus, control = list(removePunctuation = TRUE)), tm_get_tags("Positiv"))

tm.plugin.tags seems to be no longer available for R. This was based on the following classification system http://www.wjh.harvard.edu/~inquirer/homecat.htm and I'm wondering if there is any other package or approach that I can use to achieve a similar result.

I have emailed the package maintainer of tm so I will post an update here once/if I receive a response.


回答1:


You can install tm.plugin.tags using the following command

install.packages("tm.plugin.tags", repos = "http://datacube.wu.ac.at", type = "source")

This installs without any problem

Thanks Cheers



来源:https://stackoverflow.com/questions/19253824/sentiment-analysis-in-r-not-using-tm-plugin-tags

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!