0

I have a List of words that I am trying to stem. How can I use the Porter Stemmer with the List? I only found information about stemming using a text file, but I am not sure how to adapt it for the List.

Chechi
  • 13
  • 1
  • 2
  • 4
  • Is it a `List` ? why not just apply a PortStemmer on each `String` in the `List` – Manos Nikolaidis Sep 20 '15 at 20:18
  • Yes, it's a List. Do you have any example of how it can be applied in a single string? – Chechi Sep 20 '15 at 20:22
  • [Here](http://alvinalexander.com/java/jwarehouse/lucene-1.3-final/src/java/org/apache/lucene/analysis/PorterStemmer.java.shtml) is an example to get you started. Look for method `public String stem(String s)` – Manos Nikolaidis Sep 20 '15 at 20:26

0 Answers0