Download the PHP package kudashevs/rake-php without Composer
On this page you can find all versions of the php package kudashevs/rake-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kudashevs/rake-php
More information about kudashevs/rake-php
Files in kudashevs/rake-php
Package rake-php
Short Description A PHP implementation of the Rapid Automatic Keyword Extraction (RAKE) algorithm.
License MIT
Informations about the package rake-php
Rake PHP
A PHP implementation of the Rapid Automatic Keyword Extraction (RAKE) algorithm for extracting relevant keywords from individual documents.
Installation
You can install the package via composer:
Example
Here is a common usage example:
More information about RAKE and its usage, you can find in the original paper.
Options
The Rake
class accepts some configuration options:
Note: the configuration options exclude
and include
accept simple regexes.
Note: the configuration option exclude
has a higher priority than the include
option.
Note: At the moment of instantiation, the Rake
class can throw an InvalidOptionType
exception. This exception
extends a built-in InvalidArgumentException
class, so it is easy to deal with.
Simple regular expressions
The configuration options exclude
and include
accept regular expressions. The current expressions are currently supported:
.+(ly)
- a one or more match with groupingword(s)
- a match with alternation at the end of a word(word|letter)
- an alternation of words
Testing
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Note: Please make sure to update tests as appropriate.
License
The MIT License (MIT). Please see the License file for more information.