利用YAKE!进行文档关键词提取
现记录一种基于关键词统计、无监督、单文档关键词提取算法YAKE!(Yet Another Keyword Extractor)的使用笔记。
YAKE!基于5种指标:是否大写,词的位置,词频,上下文关系,词在句中频率,来计算候选词的得分,从而筛选Top-N关键词。
论文:《YAKE! Keyword extraction from single documents using multiple local features》
网站:https://liaad.github.io/yake/
代码:https://github.com/LIAAD/yake
安装
pip install git+https://github.com/LIAAD/yake
使用
import yake
text = """Sources tell us that Google is acquiring Kaggle, a platform that hosts data science and machine learning
competitions. Details about the transaction remain somewhat vague, but given that Google is hosting its Cloud
Next conference in San Francisco this week, the official announcement could come as early as tomorrow.
Reached by phone, Kaggle co-founder CEO Anthony Goldbloom declined to deny that the acquisition is happening.
Google itself declined 'to comment on rumors'. Kaggle, which has about half a million data scientists on its platform,
was founded by Goldbloom and Ben Hamner in 2010.
The service got an early start and even though it has a few competitors like DrivenData, TopCoder and HackerRank,
it has managed to stay well ahead of them by focusing on its specific niche.
The service is basically the de facto home for running data science and machine learning competitions.
With Kaggle, Google is buying one of the largest and most active communities for data scientists - and with that,
it will get increased mindshare in this community, too (though it already has plenty of that thanks to Tensorflow
and other projects). Kaggle has a bit of a history with Google, too, but that's pretty recent. Earlie

本文介绍了一种无监督的单文档关键词提取算法YAKE!的使用方法,该算法通过计算候选词的得分来筛选Top-N关键词,并提供了具体示例。
最低0.47元/天 解锁文章
2万+

被折叠的 条评论
为什么被折叠?



