VCorpus {tm}R Documentation

Volatile Corpus Constructor

Description

Constructs a volatile corpus.

Usage

Corpus(object, readerControl = list(reader = object@DefaultReader, language = "eng"), ...)

Arguments

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.

Value

An S4 object of class VCorpus which extends the class list containing a corpus.

Author(s)

Ingo Feinerer

Examples

reut21578 <- system.file("texts", "reut21578", package = "tm")
Corpus(DirSource(reut21578), readerControl = list(reader = readReut21578XML))

[Package tm version 0.4 Index]