I would like to use the genericSummary
function from package LSAfun
. Here´s a german sample text.
library("LSAfun")
text = " Gegen die Firma wurde während der letzten Woche ein Zwangsvollstreckungsverfahren eingeleitet. Darüber witzeln die Konkurrenten."
The encoding of my texts is "UTF-8". Actually, the encoding of this sample text is "latin1". Therefore I converted to utf8
text = enc2utf8(text)
When I call
genericSummary(text, k=2)
I get the following error:
Error in FUN(X[[i]], ...) :
[lsa] - could not open file C:\Users\MA\AppData\Local\Temp\RtmpcRnDPw\file16c81a35d06/sentence1.txt due to encoding problems of the file.
Does anyone know how to solve this?