@boyan-kirov/rakejs

1.0.0 • Public • Published

RAKE: Rapid automatic keyword extraction

The goal of this library was to create a well tested Javascript translation of the python implementation.

Differences in regular expressions and stopword lists have big impacts on this algorithm and sticking close to the python means that the code was easy to compare to ensure that it was in the ballpark.

This algorithm is described in Text Mining: Applications and Theory and also in this excellent blog post by Alyona Medelyan.

It operates using only the text you give it and produces surprisingly good results. There are likely better results possible but these mostly seem to involve a combination of Python, Machine Learning and a corpus of data.

The appeal of RAKE is of the "bang for the buck" variety.

Currently this library produces subtly different results than either the paper or the original Python implementation. While the results (especially the top scoring ones) line up nicely, these little deviations represent something to understand and resolve.

Usage

rake('Some string', 'stopwords.txt');

Readme

Keywords

Package Sidebar

Install

npm i @boyan-kirov/rakejs

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

9.31 kB

Total Files

4

Last publish

Collaborators

  • boyan-kirov