public class WordNetFilter extends WordFilter
Constructor and Description |
---|
WordNetFilter(java.lang.String fieldName)
Instantiates a new WordFilter with the specified field.
|
Modifier and Type | Method and Description |
---|---|
void |
addTerm(java.lang.String word)
Add a word to the set of match words for this filter
|
void |
addTerms(java.util.Set<java.lang.String> words)
Add words to the set of match words for this filter
|
static void |
setWordNetDirectory(java.lang.String dir)
Sets the directory of where to find WordNet data
|
accept, getMatchWords, setMatchAll
filterRecords
public WordNetFilter(java.lang.String fieldName)
addTerm
or
addTerms
.fieldName
- the field namepublic void addTerm(java.lang.String word)
addTerm
in class WordFilter
word
- the new word to matchpublic void addTerms(java.util.Set<java.lang.String> words)
addTerms
in class WordFilter
words
- the set of additional words to matchpublic static void setWordNetDirectory(java.lang.String dir)
dir
- the WordNet data directory