public final class FrenchStemFilter
extends org.apache.lucene.analysis.TokenFilter
TokenFilter that stems french words.
It supports a table of words that should
not be stemmed at all. The used stemmer can be changed at runtime after the
filter object is created (as long as it is a FrenchStemmer).
| Constructor and Description |
|---|
FrenchStemFilter(org.apache.lucene.analysis.TokenStream in) |
FrenchStemFilter(org.apache.lucene.analysis.TokenStream in,
java.util.Set exclusiontable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
incrementToken() |
void |
setExclusionTable(java.util.Map exclusiontable)
Set an alternative exclusion list for this filter.
|
void |
setStemmer(FrenchStemmer stemmer)
Set a alternative/custom
FrenchStemmer for this filter. |
getOnlyUseNewAPI, next, next, setOnlyUseNewAPIaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState, toStringpublic FrenchStemFilter(org.apache.lucene.analysis.TokenStream in)
public FrenchStemFilter(org.apache.lucene.analysis.TokenStream in,
java.util.Set exclusiontable)
public boolean incrementToken()
throws java.io.IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamjava.io.IOExceptionpublic void setStemmer(FrenchStemmer stemmer)
FrenchStemmer for this filter.public void setExclusionTable(java.util.Map exclusiontable)
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.