ASK: I want to make RMecCab work well with Japanese.
If you run a function of the RMeCab package against Japanese text data, it will fail as follows:
It says Paradise not found, but Paradise actually exists.By the way, it works well for English-only text data.
>library("RMeCab")
>r<-collocate("kumo.txt", node="Paradise", span=3)
file=kumo.txt
Paradise not found
Checked the character code UTF-8 when saving kumo.txt.
Viewed: R-studio Character Code UTF-8
I checked the encoding using the software called Notepad++.
© 2024 OneMinuteCode. All rights reserved.