我正在使用 stemDocument
用于使用 tm
提取文本文档R 中的包。示例代码:
data("crude")
crude[[1]]
stemDocument(crude[[1]])
我收到一条错误消息:
Error in loadNamespace(name) : there is no package called ‘Snowball’
我已安装
SnowballC
包,但找不到 Snowball 包。下面是我的 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
是否需要任何其他软件包或 Snowball?
最佳答案
只需尝试安装 SnowballC
打包到 R
install.packages("SnowballC")
library(SnowballC)
它应该工作。
关于r - R 中的 Snowball 和 Snowball 包是否不同?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23528311/