Learn R Programming

tm (version 0.5-10)

TextRepository: 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).

Examples

Run this code
data("crude")
repo <- TextRepository(crude)
summary(repo)
RepoMetaData(repo)

Run the code above in your browser using DataLab