assisted-mindfulness/rake
Composer 安装命令:
composer require assisted-mindfulness/rake
包简介
A PHP implementation of Rapid Automatic Keyword Exraction algorithm (RAKE)
README 文档
README
PHP implementation of Rapid Automatic Keyword Exraction algorithm (RAKE) for extracting multi-word phrases from text.
Installation
composer require assisted-mindfulness/rake
Usage
$rake = new Rake(4, false); $text = "UK Sport set a target of three to seven medals but there were a number of near-misses and disappointment in the sliding events, making it the first time since 2002 that Britain have failed to win a skeleton medal."; $phrases = $rake->extract($text)->sortByScore('desc')->keywords(); /* array:15 [ 0 => "sport" 1 => "target" 2 => "medals" 3 => "number" 4 => "near-misses" 5 => "disappointment" 6 => "sliding" 7 => "events" 8 => "making" 9 => "time" 10 => "2002" 11 => "britain" 12 => "failed" 13 => "skeleton" 14 => "medal" ] */
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 8.59k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-02-21