Description Usage Arguments Value Examples
This method calls clozeDelete
on all tagged text objects
inside the given obj
object (using mclapply
).
1 2 |
obj |
An object of class |
mc.cores |
The number of cores to use for parallelization,
see |
... |
options to pass through to |
An object of the same class as obj
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # use readCorpus() to create an object of class kRp.corpus
# code is only run when the english language package can be loaded
if(require("koRpus.lang.en", quietly = TRUE)){
myCorpus <- readCorpus(
dir=file.path(
path.package("tm.plugin.koRpus"), "examples", "corpus", "Edwards"
),
hierarchy=list(
Source=c(
Wikipedia_prev="Wikipedia (old)",
Wikipedia_new="Wikipedia (new)"
)
),
# use tokenize() so examples run without a TreeTagger installation
tagger="tokenize",
lang="en"
)
head(taggedText(myCorpus), n=10)
myCorpus <- clozeDelete(myCorpus)
head(taggedText(myCorpus), n=10)
} else {}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.