1

我有一个 f 关键字列表,我使用了 TextRank 算法,并且我有所有词的列表,我想将 kaywords 组合成一个多词关键字,具体取决于它们在用 java 标记的所有单词列表中的位置。举个例子 :

Keywords :[ management ,activities ,such ,accounting ,risk ,project ,performance]

标记化的所有单词列表:

[ "A", "cloud", "service", "for", "managing", "business", "activities", "such", "accounting",",", "procurement", "project", "management",",","risk", "management"," performance","."]

多关键字的结果:

[ "risk management" ,"activities such accounting","project","management performance"]
4

1 回答 1

-1

您想要的结果(“多词关键字”)是词组。我们有一个 Python 实现,用于多种 textrank 算法,默认情况下会处理它——在https://github.com/DerwenAI/pytextrank/

于 2022-03-04T21:54:51.887 回答