de.aitools.ie.stemming
Class SnowballStemmer

java.lang.Object
  extended by de.aitools.ie.stemming.SnowballStemmer
All Implemented Interfaces:
Stemmer

public class SnowballStemmer
extends java.lang.Object
implements Stemmer

This class is a wrapper that gives access to the stemmers provided by Snowball.

Currently the following languages are supported: Danish, Dutch, English, Finnish, French, German, Hungarian, Italian, Norwegian, Portuguese, Romanian, Spanish, Swedish, Turkish.

See also http://snowball.tartarus.org.

Version:
aitools 2.0 Created on 11.08.2008 $Id: SnowballStemmer.java,v 1.2 2011/02/15 10:32:36 hoppe Exp $
Author:
maik.anderka@medien.uni-weimar.de

Constructor Summary
SnowballStemmer(java.util.Locale language)
          Constructs a SnowballStemmer for the specified language.
 
Method Summary
 java.lang.String process(java.lang.String word)
          Builds the stem of the specified word.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnowballStemmer

public SnowballStemmer(java.util.Locale language)
Constructs a SnowballStemmer for the specified language.

Parameters:
language - Language of the text to be stemmed.
Throws:
StemmerException - If the specified language is not supported by Snowball.
java.lang.IllegalArgumentException - If language == null.
Method Detail

process

public java.lang.String process(java.lang.String word)
Description copied from interface: Stemmer
Builds the stem of the specified word.

Specified by:
process in interface Stemmer
Parameters:
word - Word to be stemmed.
Returns:
Stem of the specified word.