nlp - Arabic text not showing in R- -
just started working r in arabic plan text analysis , text mining hadith corpus. have been reading threads related question nevertheless, still can't manage real basics here (sorry, absolute beginner).
so, entered: textarabic.v <- scan("data/arabic-text.txt", encoding="utf-8", what= "character",sep="\n")
and comes out textarabic.v
of course, symbols (pic). prior this, saved text in utf-8 read in thread still nothing shows in arabic.
i can type in arabic r scan brings text in symbols.
also read , tried implement other user's codes make arabic text function don't know how , implement them. added r, tm , nlp packages.
what suggest me next? in advance,
i posted answer saying must using r on windows before saw comment you're on osx. on osx situation not quite dire. problem you're using old version of r. if right remember, prior 3.2 not handle unicode correctly. try installing 3.3.3 https://cran.r-project.org/bin/macosx/ , if necessary re-install packages need. should fine. بالتوفيق!
Comments
Post a Comment