tm_map.DCorpus(tm.plugin.dc)
tm_map.DCorpus()所属R语言包:tm.plugin.dc
Transformations on Distributed Corpora
分布式语料库的转变
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Interface to apply transformation functions to distributed corpora. See tm_map in tm for more information.
界面将变换功能分布语料库。见tm_map中tm的详细信息。
用法----------Usage----------
## S3 method for class 'DCorpus'
tm_map(x, FUN, ..., useMeta = FALSE, lazy = FALSE)
参数----------Arguments----------
参数:x
A distributed corpus of class DCorpus.
一个分布语料库类DCorpus。
参数:FUN
A transformation function returning a text document.
一个变换函数返回一个文本文件。
参数:...
Arguments to FUN.
FUN的参数。
参数:useMeta
Logical. Should DMetaData be passed over to FUN as argument?
逻辑。如果DMetaData被传递到FUN作为参数?
参数:lazy
FALSE. Only available to be compatible with standard tm mapping routines. Lazy evaluation is not supported in the tm.plugin.dc package.
FALSE。只适用于兼容标准的tm的映射例程。 tm.plugin.dc包不支持懒惰的评价。
值----------Value----------
A DCorpus with FUN applied to each document in x. If revisions are enabled, the original documents contained in x can be retrieved via getting back to the corresponding revision using the function setRevision().
ADCorpus与FUN中的每个文档x应用。如果修改已启用,原文件中包含的x可以通过获得相应的修订,使用功能setRevision()检索。
参见----------See Also----------
getTransformations for available transformations.
getTransformations可用的转换。
实例----------Examples----------
data("crude")
tm_map(as.DCorpus(crude), tolower)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|