Skip to content

Instantly share code, notes, and snippets.

@chums2020
chums2020 / Rwordseg.R
Created June 2, 2016 22:12 — forked from s13731105/Rwordseg.R
用 R 進行中文 text Mining
library(XML)
library(RCurl)
library(tm)
library(tmcn)
library(Rwordseg)
setwd("C:/test")
d.corpus <-Corpus(DirSource("/test/doc"), readerControl = list(language="UTF-8"))
#上兩行為抓取本機文字檔, 餘皆同網路上說明文字