News for hackers. Stuff that matters.
Re:Stemmer – An English (Porter2) Stemming Implementation in... by Isamu on Wednesday July 20, 2016 @08:45AM (#12128551)
Interesting to see the Porter2 algorithm (http://snowballstem.org/algorithms/english/stemmer.html), having also implemented a Porter stemmer ages ago myself.

But I have to ask, why are we still using this approach, which has known inaccuracies and quirks (in English)? Its one virtue is compactness, which in the old days was more important than accuracy.

But it is fun, I'll grant you that.

Re:Stemmer – An English (Porter2) Stemming Implementation in... by ch4s3 on Wednesday July 20, 2016 @10:01AM (#12129047)
I think porter2 works well enough. You don't need lexical category like lemmatisation, so it's a lot simpler than that approach.You also don't need a huge volume oftraining data.
Re:Stemmer – An English (Porter2) Stemming Implementation in... by rspeer on Wednesday July 20, 2016 @11:27AM (#12129757)
You don't need any training data to do better than Porter2, just lexical data. If you're content to map the same surface form to the same stem regardless of context, as Porter2 would, what you need is a dictionary mapping words to their stems.

This used to be considered a lot of memory to use. It's not anymore.

This leaves you with some edge cases (is "axes" the plural of "axis" or "axe"?), but it's much better than mixing up the words "universe" and "university".

Re:Stemmer – An English (Porter2) Stemming Implementation in... by ch4s3 on Thursday July 21, 2016 @10:29AM (#12137065)
That's a good point, I think I overstated the need for training data.
Re:Stemmer – An English (Porter2) Stemming Implementation in... by thibaut_barrere on Wednesday July 20, 2016 @07:58AM (#12128306)
"Stemmer was built to support the Simple Bayes [1] library"

[1] https://github.com/fredwu/simple_bayes

Re:Stemmer – An English (Porter2) Stemming Implementation in... by awetzel on Saturday July 23, 2016 @11:20AM (#12149722)
For those interested in the Stemming subject in Elixir, I made a simple Elixir wrapper around snowball implementations of stemmers : https://github.com/awetzel/stemex

snowball -> C -> NIF -> Elixir

Re:Stemmer – An English (Porter2) Stemming Implementation in... by qaq on Wednesday July 20, 2016 @01:05PM (#12130635)
Nice to see Elixir ecosystem growing, congrats on cool release
Re:Stemmer – An English (Porter2) Stemming Implementation in... by gariany on Wednesday July 20, 2016 @11:01AM (#12129512)
I'm sorry, but. why is this important? #therestoftheworld
Re:Stemmer – An English (Porter2) Stemming Implementation in... by qaq on Wednesday July 20, 2016 @01:03PM (#12130611)
Because it's Elixir :)