Learn R Programming

tm (version 0.3-1)

preprocessReut21578XML: Preprocess the Reuters21578 XML archive.

Description

Preprocess the Reuters21578 XML archive by correcting invalid UTF-8 encodings and copying each text document into a separate file.

Usage

preprocessReut21578XML(ReutersDir, ReutersOapfDir, fixEnc = TRUE)

Arguments

ReutersDir
a character describing the input directory.
ReutersOapfDir
a character describing the output directory.
fixEnc
a logical value indicating whether a invalid UTF-8 encoding in the Reuters21578 XML dataset should be corrected.

Value

  • No explicit return value. As a side product the directory ReutersOapfDir contains the corrected dataset.

References

Lewis, David (1997) Reuters-21578 Text Categorization Collection Distribution 1.0. http://kdd.ics.uci.edu/databases/reuters21578/reuters21578.html

Luz, Saturnino XML-encoded version of Reuters-21578. http://modnlp.berlios.de/reuters21578.html