de.unidu.is.text
Class StemmerFilter
java.lang.Object
de.unidu.is.text.AbstractFilter
de.unidu.is.text.AbstractSingleItemFilter
de.unidu.is.text.StemmerFilter
- All Implemented Interfaces:
- Filter, SingleItemFilter
- public class StemmerFilter
- extends AbstractSingleItemFilter
This filter converts a specified string into stemmed version.
This implementation uses the nonfree version (not packaged here) if available
(for backwards compatibility), and the Apache Lucene implementation
otherwise.
- Since:
- 2003-07-04
- Version:
- $Revision: 1.8 $, $Date: 2005/02/28 22:27:55 $
- Author:
- Henrik Nottelmann
|
Constructor Summary |
StemmerFilter(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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stemmerFilter
protected SingleItemFilter stemmerFilter
- Soundex filter to which calls are delegated.
StemmerFilter
public StemmerFilter(Filter nextFilter)
- Creates a new instance and sets the next filter in the chain.
- Parameters:
nextFilter - next filter in the filter chain
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