VCorpus {tm} | R Documentation |
Constructs a volatile corpus.
Corpus(object, readerControl = list(reader = object@DefaultReader, language = "eng"), ...)
object |
A Source object. |
readerControl |
A list with the named components reader
representing a reading function capable of handling the file format
found in object , and language giving the text's language
(preferably in ISO 639-2 format). |
... |
Optional arguments for the reader . |
An S4 object of class VCorpus
which extends the class
list
containing a corpus.
Ingo Feinerer
reut21578 <- system.file("texts", "reut21578", package = "tm") Corpus(DirSource(reut21578), readerControl = list(reader = readReut21578XML))