Description Usage Arguments Details Value Examples
Paste the text in koRpus objects.
1 2 3 4 5 6 7 |
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.
1 2 3 4 5 6 7 8 9 10 11 12 | # 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 {}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.