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,
Set exclusiontable) |
Modifier and Type | Method and Description |
---|---|
boolean |
incrementToken() |
void |
setExclusionTable(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, setOnlyUseNewAPI
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState, toString
public FrenchStemFilter(org.apache.lucene.analysis.TokenStream in)
public FrenchStemFilter(org.apache.lucene.analysis.TokenStream in, Set exclusiontable)
public boolean incrementToken() throws IOException
incrementToken
in class org.apache.lucene.analysis.TokenStream
IOException
public void setStemmer(FrenchStemmer stemmer)
FrenchStemmer
for this filter.public void setExclusionTable(Map exclusiontable)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.