Description Usage Arguments Value Examples
This method calls hyphen
on all tagged text objects
inside the given words
object (using mclapply
).
1 2 3 |
words |
An object of class |
mc.cores |
The number of cores to use for parallelization,
see |
quiet |
Logical,
if |
... |
options to pass through to |
An object of the same class as words
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # 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", "Winner", "Wikipedia_new"
),
# use tokenize() so examples run without a TreeTagger installation
tagger="tokenize",
lang="en"
)
myCorpus <- hyphen(myCorpus)
} else {}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.