tm_reduce(tm)
tm_reduce()所属R语言包:tm
Combine Transformations
结合转变
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Fold multiple transformations (mappings) into a single one.
多个转换(映射)倍数成一个单一的。
用法----------Usage----------
tm_reduce(x, tmFuns, ...)
参数----------Arguments----------
参数:x
A corpus.
的语料库。
参数:tmFuns
A list of tm transformations.
Alist:tm转换。
参数:...
Arguments to the individual transformations.
各个转换的参数。
值----------Value----------
A single tm transformation function.
一个单一的tm转换功能。
(作者)----------Author(s)----------
Ingo Feinerer
参见----------See Also----------
Reduce for R's internal folding/accumulation mechanism, and getTransformations to list available transformation (mapping) functions.
ReduceR的内部倍数/成藏机理,getTransformations列出可用的转换(映射)功能。
实例----------Examples----------
data(crude)
crude[[1]]
skipWords <- function(x) removeWords(x, c("it", "the"))
funs <- list(tolower, removePunctuation, skipWords, stripWhitespace)
tm_map(crude, FUN = tm_reduce, tmFuns = funs)[[1]]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|