split_documents {R.temis} | R Documentation |
split_documents
Description
Split documents in a corpus into documents of one of more paragraphs.
Usage
split_documents(corpus, chunksize, preserveMetadata = TRUE)
Arguments
corpus |
A |
chunksize |
The number of paragraphs each new document should contain at most. |
preserveMetadata |
Whether to preserve the meta-data of original documents. |
Value
A Corpus
object with split documents.
Examples
file <- system.file("texts", "reut21578-factiva.xml", package="tm.plugin.factiva")
corpus <- import_corpus(file, "factiva", language="en")
split_documents(corpus, 3)
[Package R.temis version 0.1.3 Index]