0

dosen't lsa in r support foreign language

my code

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

the error

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

or am doing something wrong

the file which produces error is the source page of amazon

The6thSense
  • 8,103
  • 8
  • 31
  • 65

1 Answers1

2

You could try loading the file up in something like Notepad++, then save it as a different encoding. There are also utilities that will convert it, I use one in Git-bash sometimes called iconv. You have to install Git to get access to it.

Mike Wise
  • 22,131
  • 8
  • 81
  • 104