node-rake icon indicating copy to clipboard operation
node-rake copied to clipboard

A NodeJS implementation of the Rapid Automatic Keyword Extraction algorithm.

Results 9 node-rake issues
Sort by recently updated
recently updated
newest added

Observing https://github.com/boudinfl/pke#implemented-models there are other options for Keyword Extraction, might be a good idea to give some pointers to YAKE and TextRank Javascript libraries. e.g. https://www.npmjs.com/package/textrank and http://yake.inesctec.pt/

This occurs only when you have a stop word, followed by multiple spaces, and then followed by a stop word. For example: ``` > rake.generate("Please elaborate on planets of the")...

For this simple query in Spanish, with empty stopwords (or with stopwords; it doesn't matter): ``` rake.generate("Cuantos años tienes?", {stopwords: []}) ``` I get the error: ``` TypeError: Cannot read...

\node_modules\node-rake\index.js:63 Object.values(wordFreq).forEach((freq) => { wordDegree[freq] += wordFreq[freq]; }); ^ TypeError: Object.values is not a function at Rake.calculateKeywordScores (C:\Users\john.manumbas\Desktop\bots\Sample Node\node_modules\node-rake\index.js:63:12) at Rake.generate (C:\Users\john.manumbas\Desktop\bots\Sample Node\node_modules\node-rake\index.js:88:29) at Object.generate (C:\Users\john.manumbas\Desktop\bots\Sample Node\node_modules\node-rake\app.js:13:21) at Object. (C:\Users\john.manumbas\Desktop\bots\Sample...

Object.values in not widely supported

\b are not working for languages other than english. Which makes it impossible to use at all. Simply removing them seems to work fine though.

SyntaxError: Unexpected token ) /node-rake/index.js:32

Removed Object.values as it causes errors not spreading. Also used flat(Infinity) instead of [].concat