R语言中的文本摘要 [英] Text summarization in R language
本文介绍了R语言中的文本摘要的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有使用 R 语言
帮助的长文本文件 我想用至少 10 到 20 行或小句子总结文本.如何用R语言
总结至少10行文字?
I have long text file using help of R language
I want to summarize text in at least 10 to 20 line or in small sentences.
How to summarize text in at least 10 line with R language
?
推荐答案
你可以试试这个(来自 LSAfun 包):
You may try this (from the LSAfun package):
genericSummary(D,k=1)
其中D"指定您的文本文档,k"指定要在摘要中使用的句子数.(进一步的修改显示在包文档中).
whereby 'D' specifies your text document and 'k' the number of sentences to be used in the summary. (Further modifications are shown in the package documentation).
欲了解更多信息:http://search.r-project.org/library/LSAfun/html/genericSummary.html
这篇关于R语言中的文本摘要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文