擅长:python、mysql、java
<p>已从Gensim 4.0中删除<code>summarization</code>代码。见:</p>
<p><a href="https://github.com/RaRe-Technologies/gensim/wiki/Migrating-from-Gensim-3.x-to-4#12-removed-gensimsummarization" rel="nofollow noreferrer">https://github.com/RaRe-Technologies/gensim/wiki/Migrating-from-Gensim-3.x-to-4#12-removed-gensimsummarization</a></p>
<blockquote>
<h4>12. Removed <code>gensim.summarization</code></h4>
<p>Despite its general-sounding name, the module will not satisfy the
majority of use cases in production and is likely to waste people's
time. See <a href="https://github.com/RaRe-Technologies/gensim/issues/2592" rel="nofollow noreferrer">this Github
ticket</a> for
more motivation behind this.</p>
</blockquote>
<p>如果需要,您可以尝试:</p>
<ul>
<li>安装较旧的gensim版本(如<code>3.8.3</code>,它保留的最后一个官方版本);或者</li>
<li>将源代码复制到您自己的本地模块</li>
</ul>
<p>然而,我想你可能会对它的僵化和它所能做的很少感到失望</p>
<p>这是<em>唯一的</em>摘录摘要-从已经存在的句子中选择几个关键句子。只有当源文本已经以说明文的形式写得很好,混合了高级概述句和单独的细节句时,这才会产生令人印象深刻的结果。而且,它对单词的分析/排序方法非常粗糙;难以定制–与Gensim或其他文本库中使用的更通用/可配置/可交换方法完全无关</p>