convertRCV1Plain {tm} | R Documentation |
Transform a Reuters Corpus Volume 1 XML document to a plain text document.
convertRCV1Plain(node, ...)
node |
A RCV1Document representing a well-formed RCV1 XML file. |
... |
Arguments passed over by calling functions. |
A PlainTextDocument
representing node
.
Ingo Feinerer
rcv1 <- system.file("texts", "rcv1", package = "tm") rcv1TDC <- Corpus(DirSource(rcv1), readerControl = list(reader = readRCV1)) rcv1TDC[[1]] asPlain(rcv1TDC[[1]], convertRCV1Plain)