readRCV1 {tm}R Documentation

Read In A Reuters Corpus Volume 1 Document

Description

Returns a function which reads in a Reuters Corpus Volume 1 XML document.

Usage

readRCV1(...)

Arguments

... arguments for the generator function.

Details

Formally this function is a function generator, i.e., it returns a function (which reads in a Reuters Corpus Volume 1 XML document) with a well-defined signature, but can access passed over arguments via lexical scoping. This is especially useful for reader functions for complex data structures which need a lot of configuration options.

Value

A function with the signature elem, load, id:

elem A list with the two named elements content and uri. The first element must hold the document corpus to be read in, the second element must hold a call to the document corpus. The call is evaluated upon a request for load on demand.
load A logical value indicating whether the document corpus should be immediately loaded into memory.
id A character representing a unique identification string for the returned text document.

normal-bracket23bracket-normal
The function returns a XMLTextDocument representing content.

Author(s)

Ingo Feinerer


[Package tm version 0.1-1 Index]