TextRepository {tm}R Documentation

Text Repository

Description

Construct a text repository for corpora. A repository is designed to keep track of multiple corpora, either different ones, or corpora with the same underlying texts but at different preprocessing stages.

Usage

TextRepository(x,
               meta = list(created =
                           as.POSIXlt(Sys.time(), tz = "GMT")))

Arguments

x

A corpus.

meta

An initial list of tag-value pairs for the repository meta data.

Value

An object of class TextRepository which extends the class list containing corpora. Meta data annotations are stored in the attribute RepoMetaData in form of tag-value pairs (i.e., a named list).

Author(s)

Ingo Feinerer

Examples

data("crude")
repo <- TextRepository(crude)
summary(repo)
RepoMetaData(repo)

[Package tm version 0.5-10 Index]