DavidBelicza / PHP-Science-TextRank

:zap: :elephant: TextRank (resource-efficient and low-cost automatic text summarisation) for PHP
https://php.science/textrank/
MIT License
243 stars 40 forks source link

Why it can only detect one word? #14

Closed erikdemarco closed 11 months ago

erikdemarco commented 2 years ago

Other old project based on TextRank (https://github.com/crodas/TextRank) can extract most popular keywords from text including two or three keywords.

For example this text: lorem ipsum only lorem ipsum sample

It will only extract: lorem ipsum

Instead of: lorem ipsum

DavidBelicza commented 11 months ago

This implementation of the algorithm extracts the tokens (words) rather than phrases.