# SCM Repository

 [tm] / pkg / man / Reader.Rd

Sat May 20 10:28:00 2017 UTC (16 months, 3 weeks ago) by feinerer
File size: 1971 byte(s)
Support TIF for DataframeSource

See Text Interchange Formats (TIF, https://github.com/ropensci/tif) and

\name{Reader}
\alias{FunctionGenerator}
\description{
}
\usage{
}
\details{
of elements delivered by a \code{\link{Source}}, and for constructing a
its signature:
\describe{
\item{\code{elem}}{a named list with the components \code{content} and
\code{uri} (as delivered by a \code{\link{Source}} via
\item{\code{language}}{a character string giving the language.}
\item{\code{id}}{a character giving a unique identifier for the created text
document.}
}
The element \code{elem} is typically provided by a source whereas the language
and the identifier are normally provided by a corpus constructor (for the case
that \code{elem\$content} does not give information on these two essential
items).

In case a reader expects configuration arguments we can use a function
generator. A function generator is indicated by inheriting from class
\code{FunctionGenerator} and \code{function}. It allows us to process
with the well-defined signature described above, and still be able to access
the additional arguments via lexical scoping. All corpus constructors in
package \pkg{tm} check the reader function for being a function generator and
if so apply it to yield the reader with the expected signature.
}
\value{