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

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

Open atezaz opened this issue 6 years ago • 3 comments

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

atezaz avatar Mar 10 '18 16:03 atezaz

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

dundas avatar Mar 21 '18 01:03 dundas

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

waseem18 avatar Mar 21 '18 03:03 waseem18

@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' ]

waseem18 avatar Mar 21 '18 07:03 waseem18