利用YAKE进行文档关键词提取

本文介绍了一种无监督的单文档关键词提取算法YAKE!的使用方法,该算法通过计算候选词的得分来筛选Top-N关键词,并提供了具体示例。

利用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
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值