phamluann/rake
最新稳定版本:v1.0.0
Composer 安装命令:
composer require phamluann/rake
包简介
Rapid Keyword Extraction (RAKE) Algorithm
关键字:
README 文档
README
Installation
You can install the package via composer:
composer require phamluann/rake
Usage
- get file content:
$str = file_get_contents(__DIR__ . '/your-file');
- example index.php
<?php require __DIR__ . '/vendor/autoload.php'; use PhamLuann\Rake\Rake; $str = file_get_contents(__DIR__ . '/src/stopword/text.txt'); $rake = new Rake($str); $keyWords = $rake->getKeyword(); $result = ''; foreach ($keyWords as $keyWord => $score) { $result .= $keyWord . ' ==> ' . $score . "\n\r"; } echo $result; ?>
Security
If you discover any security related issues, please email pvluan17@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-09