|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectTokenStream
TokenFilter
PluralFoldingFilter
public class PluralFoldingFilter
Improves query results by converting plural words to their singular forms.
| Field Summary | |
|---|---|
private WordMap |
pluralMap
Set of words to de-pluralize |
| Fields inherited from class TokenFilter |
|---|
input |
| Constructor Summary | |
|---|---|
PluralFoldingFilter(TokenStream input,
WordMap pluralMap)
Construct a token stream to convert plural words to singular. |
|
| Method Summary | |
|---|---|
Token |
next()
Retrieve the next token in the stream. |
| Methods inherited from class TokenFilter |
|---|
close |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private WordMap pluralMap
| Constructor Detail |
|---|
public PluralFoldingFilter(TokenStream input,
WordMap pluralMap)
input - Input stream of tokens to processpluralMap - Mapping of plural words to their singular equivalents.| Method Detail |
|---|
public Token next()
throws IOException
next in class TokenStreamIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||