rake_nltk包中返回none关键字的函数

2024-09-28 05:15:36 发布

您现在位置:Python中文网/ 问答频道 /正文

以下代码返回None关键词:在

from rake_nltk import Rake

r=Rake()
testscenario='''This document is very important as it has a lot of business objectives mentioned in it.'''
defect='''Current day per security file is going to Bloomberg and we are getting data back from Bloomberg but it is not loading into the MarkIt tables.  Last date on MarkIt tables for data loaded was June 29, 2016.BBG Run date for what is going into per security matcher is June 29th.See attached for screen shots.'''
print(r.extract_keywords_from_text(testscenario))

我得到的结果是没有。在


Tags: fromfortablesdatadateisitsecurity
1条回答
网友
1楼 · 发布于 2024-09-28 05:15:36

请参阅软件包的自述文件。它清楚地描述了你需要什么来获得排名短语

r.extract_keywords_from_text(testscenario)

从给定文本中提取关键字。使用

^{pr2}$

得到排名得分和权重。在

自述链接:https://github.com/csurfer/rake-nltk/blob/master/README.md

相关问题 更多 >

    热门问题