找回密码
 注册
查看: 618|回复: 0

R语言 tm.plugin.dc包 Revisions()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-10-1 10:44:20 | 显示全部楼层 |阅读模式
Revisions(tm.plugin.dc)
Revisions()所属R语言包:tm.plugin.dc

                                        Revisions of a Distributed Corpus
                                         修订分布式语料库

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Each modification of the documents in the corpus results in a new stage, i.e., revision of the corpus. To allow fast switching between multiple revisions all modifications may be kept on the file system. The function setRevision() allows to go back to any stage in the history of the corpus. The function keepRevisions() shows if revisions are turned on or off; the corresponding replacement function is used to set the desired behavior.
每一次修改的文件在一个新的阶段,即修订的语料语料中的结果。为了让所有的修改可以保持文件系统上的多个修订版本之间的快速切换。的功能setRevision()可以去任何阶段,在历史上的语料。的功能keepRevisions()表明,如果修订的开启或关闭相应的替换功能是用于设置所需的行为。


用法----------Usage----------


getRevisions( corpus )
removeRevision( corpus, revision )
setRevision( corpus, revision )
keepRevisions( corpus )
`keepRevisions<-`( corpus, value )



参数----------Arguments----------

参数:corpus
A distributed corpus of class DCorpus.
一个分布语料库类DCorpus。


参数:revision
The revision which is to be set as active or removed.
revision,它是要被设置为活动的或删除的。


参数:value
A logical indicating whether revisions should be kept or not.
一个逻辑表示是否修改应保持或没有。


值----------Value----------

Whereas getRevisions() returns a list of character strings naming all available revisions, setRevision() returns the distributed corpus with the given revision marked as active. The function keepRevisions() returns a logical indicating whether revisions are used or not.
而getRevisions()返回一个字符串,命名所有可用的修订,setRevision()返回的分布式语料库的修订标记为活动。函数keepRevisions()是否修订或返回一个逻辑。


实例----------Examples----------


## provide data on storage[#提供数据存储。]
data("crude")
dc <- as.DCorpus(crude)
## do some preprocessing[#做一些预处理]
dc <- tm_map(dc, tolower)
## retrieve available revisions[#检索可用修改]
revs <- getRevisions(dc)
revs
## go back to original revision[#回到原始版本]
setRevision(dc, revs[1])
keepRevisions(dc)
keepRevisions(dc) <- FALSE

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-18 22:39 , Processed in 0.022999 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表