Description Usage Arguments Examples
Build a corpus from documents or a directory of text files.
1 2 3 4 5 6 7 8 9 10 11 12 13 | corpus(document, ..., update_lexicon = TRUE,
update_inverse_index = TRUE)
## S3 method for class 'document'
corpus(document, ..., update_lexicon = TRUE,
update_inverse_index = TRUE)
## S3 method for class 'documents'
corpus(document, ..., update_lexicon = TRUE,
update_inverse_index = TRUE)
directory_corpus(directory, update_lexicon = TRUE,
update_inverse_index = TRUE)
|
document |
First |
... |
Objects inheriting of class |
update_lexicon |
Whether to update the lexicon, see |
update_inverse_index |
Whether to update the inverse index, see |
directory |
Path to a directory of text files. |
1 2 3 4 5 6 7 8 9 10 | ## Not run:
init_textanalysis()
# build document
doc1 <- string_document("First document.")
doc2 <- string_document("Second document.")
corpus <- corpus(doc1, doc2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.