public class AccentFoldingFilter
extends TokenFilter
Modifier and Type | Field and Description |
---|---|
private CharMap |
accentMap
Set of characters to map
|
Constructor and Description |
---|
AccentFoldingFilter(TokenStream input,
CharMap accentMap)
Construct a token stream to remove accents from the input tokens.
|
Modifier and Type | Method and Description |
---|---|
Token |
next()
Retrieve the next token in the stream.
|
private CharMap accentMap
public AccentFoldingFilter(TokenStream input, CharMap accentMap)
input
- Input stream of tokens to processaccentMap
- Map of accented characters to their un-accented
counterparts.