Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are Snowball & SnowballC packages different in R?

I am using stemDocument for stemming text document using tm package in R. Example code:

data("crude")
crude[[1]]
stemDocument(crude[[1]])

I get an error message:

Error in loadNamespace(name) : there is no package called ‘Snowball’

I have installed SnowballC package and unable to find Snowball package. Below is my sessionInfo():

R version 2.15.3 (2013-03-01)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

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

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

other attached packages:
[1] SnowballC_0.5 tm_0.5-8.3   

loaded via a namespace (and not attached):
[1] slam_0.1-31  tools_2.15.3

Does it require any other package or Snowball?

like image 387
Ram Avatar asked Dec 07 '22 02:12

Ram


1 Answers

Just try to install the SnowballC packages to R

install.packages("SnowballC")

library(SnowballC)

It should work.

like image 64
Manivannan Murugavel Avatar answered Dec 30 '22 06:12

Manivannan Murugavel