Skip to content

Instantly share code, notes, and snippets.

@bryanyang0528
Created September 19, 2014 16:13
Show Gist options
  • Select an option

  • Save bryanyang0528/1c6c7dacffb344e97d00 to your computer and use it in GitHub Desktop.

Select an option

Save bryanyang0528/1c6c7dacffb344e97d00 to your computer and use it in GitHub Desktop.
corpus
text <- c("今天天氣很好1","今天天氣很好2")
d.corpus <- Corpus(VectorSource(text))
inspect(d.corpus)
'''
<<VCorpus (documents: 2, metadata (corpus/indexed): 0/0)>>
[[1]]
<<PlainTextDocument (metadata: 7)>>
今天天氣很好1
[[2]]
<<PlainTextDocument (metadata: 7)>>
今天天氣很好2
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment