1.我将Excel里的文字复制到text中,使用read.table(file="文件地址")读取成功,
a<-read.table("C:\\Users\\Administrator\\Desktop\\Rword.txt")
s=worker()
segment(a,s)
然后显示Argument 'code' must be an string.怎么解决?
2. 使用Rwordseq分词成功,保存地址为下行地址,统计词频时候出错(网上找的代码,不太理解)
text<-readLines("C:\\Users\\Administrator\\Desktop\\Rword.segment.txt")
txtlist<-lappy(txt,strsplit," ")
做到第二步的时候显示没有lappy这个函数,package也没有,不知道哪里出问题了。
3.如果有分词到词频到wordcloud绘图明白的大佬,麻烦写下步骤,网上的感觉不可靠。