[R] text mining

PDXRugger J_R_36 at hotmail.com
Fri Oct 2 19:15:23 CEST 2009


The following code is derived from a paper titled "Text Mining Infrastructure
in R" (http://www.jstatsoft.org/v25/i05/paper).  The example below seems to
load some default documents for analysis, some sort of latin document.  I
cannot for the life of me figure out to load my own document let alone an
entire corpus.  I have searched the above documenet as well as related
documentation.  Any leads or help would be appreciated.  Thanks everyone

from document

txt <- system.file("texts", "txt", package = "tm")
 (ovid <- Corpus(DirSource(txt),
 readerControl = list(reader = readPlain,
language = "la",
 load = TRUE)))

my attempt
txt <- system.file("Speeches/speech", "txt", package = "tm")
 (ovid <- Corpus(DirSource(txt),
 readerControl = list(reader = readPlain,
language = "la",
 load = TRUE)))


-- 
View this message in context: http://www.nabble.com/text-mining-tp25717142p25717142.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list