Commit a310cdad authored by Gabriel Gutu-Robu's avatar Gabriel Gutu-Robu

Dutch Stemmer fixed

parent 5f90f69a
......@@ -15,17 +15,25 @@
*/
package com.readerbench.services.nlp.stemmer;
import org.tartarus.snowball.Among;
/**
* This class was automatically generated by a Snowball to Java compiler It
* implements the stemming algorithm defined by a snowball script.
*/
public class Stemmer_NL extends org.tartarus.snowball.SnowballStemmer {
public class Stemmer_NL extends SnowballProgram {
protected static String stemWord(String sir) {
methodObject.setCurrent(sir);
methodObject.stem();
try {
methodObject.setCurrent(sir);
methodObject.stem();
}
catch(Exception ex) {
System.err.println(ex.getStackTrace());
return sir;
}
catch(Error e) {
// System.err.println(e.getStackTrace());
return sir;
}
return methodObject.getCurrent();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment