Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R tm package tm.plugin.tags stopped working

Tags:

r

tm

I use the tm.plugin.tags for sentiment analysis:

pos=sapply(search.corpus,tm_tag_score,tm_get_tags("Positiv"))
neg=sapply(search.corpus,tm_tag_score,tm_get_tags("Negativ"))

Somehow it stopped working on my Linux machine. The library loads without warnings, and is shown as loaded in the packages view of RStudio. However the functions are not available:

No documentation for ‘tm_tag_score’ in specified packages and libraries:
you could try ‘??tm_tag_score’

However, the same script is working fine in Windows. Does anybody know what the problem could be?

like image 575
Henk Avatar asked Jan 24 '26 13:01

Henk


1 Answers

Read here: http://cran.fyxm.net/web/packages/tm/news.html - it has been renamed into tm_term_score in the tm package.

library(tm)
tm_tag_score <- tm_term_score

(What a coincidence; I ran into the same problem about 2 hours ago.)

like image 198
lukeA Avatar answered Jan 26 '26 01:01

lukeA



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!