de.unidu.is.text
Class GermanStemmerFilter

java.lang.Object
  extended byde.unidu.is.text.AbstractFilter
      extended byde.unidu.is.text.AbstractSingleItemFilter
          extended byde.unidu.is.text.GermanStemmerFilter
All Implemented Interfaces:
Filter, SingleItemFilter

public class GermanStemmerFilter
extends AbstractSingleItemFilter

This filter converts a specified German string into stemmed version. The stemmer is taken from Snowball.

Since:
2005-03-20
Version:
$Revision: 1.1 $, $Date: 2005/03/19 23:52:11 $
Author:
Henrik Nottelmann

Field Summary
protected  net.sf.snowball.ext.germanStemmer stemmer
          German stemmer from Snowball.
 
Fields inherited from class de.unidu.is.text.AbstractFilter
nextFilter
 
Constructor Summary
GermanStemmerFilter(Filter nextFilter)
          Creates a new instance and sets the next filter in the chain.
 
Method Summary
 java.lang.Object run(java.lang.Object value)
          Converts the specified word into its stemmed version.
 
Methods inherited from class de.unidu.is.text.AbstractSingleItemFilter
filter
 
Methods inherited from class de.unidu.is.text.AbstractFilter
apply, apply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stemmer

protected net.sf.snowball.ext.germanStemmer stemmer
German stemmer from Snowball.

Constructor Detail

GermanStemmerFilter

public GermanStemmerFilter(Filter nextFilter)
Creates a new instance and sets the next filter in the chain.

Parameters:
nextFilter - next filter in the filter chain
Method Detail

run

public java.lang.Object run(java.lang.Object value)
Converts the specified word into its stemmed version.

Parameters:
value - word to stem
Returns:
stemmed word