isklenar
isklenar

Reputation: 994

Does OpenNLP have a stemmer?

I'm working on a project and I'm using some features from OpenNLP. One feature I need is stemmer. I googled a bit and found that supposedly it has a Porter stemmer in a opennlp.tools.stemmer package, however the only thing my IDE (IntelliJ IDEA 13.1) finds is Stemmer interface.

I'm using OpenNLP 1.5.3. Am I looking in a wrong place or OpenNLP doesn't have a stemmer implementation?

Upvotes: 2

Views: 2600

Answers (3)

Yuval
Yuval

Reputation: 8087

As of version 1.6.0, class PorterStemmer is public and available for use. Enjoy!

Upvotes: 1

rjurney
rjurney

Reputation: 5150

The PorterStemmer in Open NLP is private. You can't use it from outside Open NLP. Worst decision ever.

Upvotes: 1

Brad Rhoads
Brad Rhoads

Reputation: 1846

There does seem to be an implementation. See http://grepcode.com/file/repo1.maven.org/maven2/org.apache.opennlp/opennlp-tools/1.5.3/opennlp/tools/stemmer/Stemmer.java#Stemmer

I hope it proves to be usable. If not, I'll probably use a service like: https://www.enclout.com/api/stemmer/show

Upvotes: 0

Related Questions