Rapid Keyword Extraction (RAKE) Algorithm

v1.0.0 2023-01-09 04:36 UTC

This package is auto-updated.

Last update: 2024-05-09 07:51:46 UTC


README

Latest Version on Packagist Total Downloads

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.