Paste koRpus objects
Paste the text in koRpus objects.
pasteText(txt, ...) ## S4 method for signature 'kRp.text' pasteText( txt, replace = c(hon.kRp = "", hoff.kRp = "\n\n", p.kRp = "\n\n") )
txt |
An object of class |
... |
Additional options, currently unused. |
replace |
A named character vector to define replacements for |
This function takes objects of class kRp.text
and pastes only the actual text as is.
An atomic character vector.
# code is only run when the english language package can be loaded if(require("koRpus.lang.en", quietly = TRUE)){ sample_file <- file.path( path.package("koRpus"), "examples", "corpus", "Reality_Winner.txt" ) tokenized.obj <- tokenize( txt=sample_file, lang="en" ) tokenized.obj <- jumbleWords(tokenized.obj) pasteText(tokenized.obj) } else {}
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.