public class StdTermFilter
extends Object
| Modifier and Type | Class and Description |
|---|---|
private class |
StdTermFilter.DribbleStream |
| Modifier and Type | Field and Description |
|---|---|
private StdTermFilter.DribbleStream |
dribble |
private TokenStream |
filter |
private static String |
SAVE_WILD_QMARK
During tokenization, the '?'
|
private static String |
SAVE_WILD_STAR
During tokenization, the '*' wildcard has to be changed to a word
to keep it from being removed.
|
| Constructor and Description |
|---|
StdTermFilter()
Construct the rewriter
|
| Modifier and Type | Method and Description |
|---|---|
String |
filter(String term)
Apply the standard mapping to the given term.
|
protected static String |
restoreWildcards(String s)
Restores wildcards saved by
saveWildcards(String). |
protected static String |
saveWildcards(String s)
Converts wildcard characters into word-looking bits that would never
occur in real text, so the standard tokenizer will keep them part of
words.
|
private StdTermFilter.DribbleStream dribble
private TokenStream filter
private static final String SAVE_WILD_STAR
private static final String SAVE_WILD_QMARK
public String filter(String term)
protected static String saveWildcards(String s)
restoreWildcards(String).protected static String restoreWildcards(String s)
saveWildcards(String).