tm (version 0.6-1)

VCorpus: Volatile Corpora

Description

Create volatile corpora.

Usage

VCorpus(x, readerControl = list(reader = reader(x), language = "en"))
as.VCorpus(x)

Arguments

x
For VCorpus a Source object, and for as.VCorpus an Robject.
readerControl
a named list of control parameters for reading in content from x. [object Object],[object Object]

Value

  • An object inheriting from VCorpus and Corpus.

Details

A volatile corpus is fully kept in memory and thus all changes only affect the corresponding Robject.

The function Corpus is a convenience alias to VCorpus.

See Also

Corpus for basic information on the corpus infrastructure employed by package tm.

PCorpus provides an implementation with permanent storage semantics.

Examples

reut21578 <- system.file("texts", "crude", package = "tm")
VCorpus(DirSource(reut21578), list(reader = readReut21578XMLasPlain))