phamluann / rake
Rapid Keyword Extraction (RAKE) Algorithm
v1.0.0
2023-01-09 04:36 UTC
Requires
- php: >=7.4
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-11-09 09:03:12 UTC
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.