Data structures and operators for volatile corpora.
Usage
Corpus(x, readerControl = list(reader = x$DefaultReader, language = "eng"), ...)
VCorpus(x, readerControl = list(reader = x$DefaultReader, language = "eng"), ...)
## S3 method for class 'VCorpus':
DMetaData(x)
## S3 method for class 'Corpus':
CMetaData(x)
Arguments
x
A Source object for Corpus and
VCorpus, and a corpus for the other functions.
readerControl
A list with the named components reader
representing a reading function capable of handling the file format
found in x, and language giving the text's language
(preferably in ISO 639-2
...
Optional arguments for the reader.
Value
An object of class VCorpus which extends the classes
Corpus and list containing a collection of text
documents.
Details
Volatile means that the corpus is fully kept in memory and thus all
changes only affect the corresponding Robject. In contrast there is
also a corpus implementation available providing a permanent semantics
(see PCorpus).
The constructed corpus object inherits from a list and has two
attributes containing meta information:
[object Object],[object Object]