Skip to content

Instantly share code, notes, and snippets.

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

  • Save bryanyang0528/4669314eeb4c4739a8f6 to your computer and use it in GitHub Desktop.

Select an option

Save bryanyang0528/4669314eeb4c4739a8f6 to your computer and use it in GitHub Desktop.
corpus structure
> str(d.corpus)
List of 2
$ 1:List of 2
..$ content: chr "今天天氣很好1"
..$ meta :List of 7
.. ..$ author : chr(0)
.. ..$ datetimestamp: POSIXlt[1:1], format: "2014-09-19 16:12:28"
.. ..$ description : chr(0)
.. ..$ heading : chr(0)
.. ..$ id : chr "1"
.. ..$ language : chr "en"
.. ..$ origin : chr(0)
.. ..- attr(*, "class")= chr "TextDocumentMeta"
..- attr(*, "class")= chr [1:2] "PlainTextDocument" "TextDocument"
$ 2:List of 2
..$ content: chr "今天天氣很好2"
..$ meta :List of 7
.. ..$ author : chr(0)
.. ..$ datetimestamp: POSIXlt[1:1], format: "2014-09-19 16:12:28"
.. ..$ description : chr(0)
.. ..$ heading : chr(0)
.. ..$ id : chr "2"
.. ..$ language : chr "en"
.. ..$ origin : chr(0)
.. ..- attr(*, "class")= chr "TextDocumentMeta"
..- attr(*, "class")= chr [1:2] "PlainTextDocument" "TextDocument"
- attr(*, "class")= chr [1:2] "VCorpus" "Corpus"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment