nggiahao / rake-php
PHP implementation of Rapid Automatic Keyword Exraction algorithm (RAKE)
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/nggiahao/rake-php
Requires
- php: ^7.3
Requires (Dev)
- phpunit/phpunit: ^9.0
- symfony/var-dumper: ^5.2
This package is auto-updated.
Last update: 2025-10-28 12:56:10 UTC
README
PHP implementation of Rapid Automatic Keyword Exraction algorithm (RAKE)
Currently Supported Languages
- English US
- Spanish
Installation
You can install the package via composer:
composer require nggiahao/rake-php
Usage
use Nggiahao\RakePhp\RakePhp; $text = "The Criteria of compatibility of a system of linear Diophantine equations, strict inequations, and nonstrict inequations are considered the. Upper bounds for components of a minimal set of solutions and algorithms of construction of minimal generating sets of solutions for all types of systems are given."; $stop_words = new English(); $keywords = RakePhp::create($stop_words)->extract($text)->sortByScore('desc')->keywords();
array:16 [
  "linear diophantine equations" => 9.0
  "minimal generating sets" => 8.5
  "minimal set" => 4.5
  "strict inequations" => 4.0
  "nonstrict inequations" => 4.0
  "upper bounds" => 4.0
  "criteria" => 1.0
  "compatibility" => 1.0
  "considered" => 1.0
  "components" => 1.0
  "solutions" => 1.0
  "algorithms" => 1.0
  "construction" => 1.0
  "types" => 1.0
  "systems" => 1.0
  "given" => 1.0
]
Testing
composer test
Credits
License
The MIT License (MIT). Please see License File for more information.
PHP Package Boilerplate
This package was generated using the PHP Package Boilerplate.