waseem18 / node-rake

A NodeJS implementation of the Rapid Automatic Keyword Extraction algorithm.
http://www.thabraze.me/node-rake/
MIT License
100 stars 20 forks source link

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

Open atezaz opened 6 years ago

atezaz commented 6 years ago

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

dundas commented 6 years ago

Yes I am having the same issue. Were you able to get it to work?

waseem18 commented 6 years ago

Sorry for the delay folks - Will take some time today to fix it and make a new release. Duplicate : #22

waseem18 commented 6 years ago

@atezaz @dundas Can you please give me more information as in how you were using node-rake so that I can replicate the issue?!

However I've pushed a new build with the version 1.0.1 after merging #18 .

Here's a sample program I checked node-rake with :

const rake = require('node-rake') const myStopwords = ['for', 'the', 'a', 'stands', 'test', 'man', 'woman']; const opts = {stopwords: myStopwords}; const keywords = rake.generate("LDA stands for Latent Dirichlet Allocation", opts); console.log(keywords)

Result: [ 'Latent Dirichlet Allocation', 'LDA' ]