Skip to content

Instantly share code, notes, and snippets.

@bryanyang0528
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save bryanyang0528/107caa334d8177d4d3ef to your computer and use it in GitHub Desktop.

Select an option

Save bryanyang0528/107caa334d8177d4d3ef to your computer and use it in GitHub Desktop.
corpus-1
d.corpus <- tm_map(d.corpus, function(x) gsub("今天","昨天",x))
inspect(d.corpus)
<<VCorpus (documents: 2, metadata (corpus/indexed): 0/0)>>
[[1]]
[1] 昨天天氣很好1
[[2]]
[1] 昨天天氣很好2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment