6 ms·
Hmm, what about word stemming? I looked up "windmills" and got an empty result set.
by zmillman 12y ago
Hmm, what about word stemming? I looked up "windmills" and got an empty result set.
- byoung2 12y agoSame with "walked". I've used the Porter Stemming Algorithm in the past, and it works well. http://tartarus.org/martin/PorterStemmer/ http://tartarus.org/martin/PorterStemmer/
- chrisfarms 12y agoThe data is stored in postgres, so it should be simple enough to use the Snowball dictionary/stemmer and the tsvector/tsquery functions to sort this out.
- impostervt 12y agoI'll have to see if I can find a good library for this. The ones I tried (like Node Natural) just didn't give great results.
- lotophage 12y agoWhat you really want is a lemmatizer (stemming approximates lemmatization). I believe that NLTK has a WordNet lemmatizer, but I don't know much about it.