-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
usage in nodejs #1
Comments
+1 |
Sorry, I missed this issue. It is stable. Original Snowball stemmer contains more than 100 thousands test cases (pairs of original word and stemmed word), and this code (and Python codes I made with this code) returns 100% compatible result. I understand only English, I can't test more. I don't like commit resulting files into repository. But I will add them on release pages. The following code works for me. var PorterStemmer = require('./porter-stemmer.common.js').PorterStemmer;
var stemmer = new PorterStemmer();
console.log(stemmer.stemWord("baby")); |
trying to load the module: var Stemmer = require('porter-stemmer.common.js').PorterStemmer;
//or
var Stemmer = require('snowball-stemmer.jsx/porter-stemmer.common.js');
//or
var Stemmer = require('snowball-stemmer.jsx/dest/porter-stemmer.common.js'); Nothing seems to actually work. |
The last one should work. |
I fix README. Thank you for your feedback! |
Also: http://snowball.tartarus.org/license.php
|
Hi,
First, I want to thank you: having snowball stemmer in javascript world is great.
I have two questions:
do you have a working sample in nodejs?
Thanks,
The text was updated successfully, but these errors were encountered: