编码问题R LSA

时间:2015-05-31 13:55:47

标签: r lsa

支持外语支持

我的代码

library("lsa") 
Loading required package: SnowballC
trm = textmatrix("s/") 

错误

[lsa] - could not open file s/s.txt due to encoding problems of the file.

或我做错了什么

产生错误的文件是amazon

的源页面

1 个答案:

答案 0 :(得分:1)

您可以尝试在Notepad ++中加载文件,然后将其另存为不同的编码。还有一些实用程序可以转换它,我在Git-bash中使用一个有时称为iconv的实用程序。您必须安装Git才能访问它。