public class WordsFromFile extends AbstractFileBasedStopwords
-D If set, stopword scheme is run in debug mode and may output additional info to the console
-stopwords <file> The file containing the stopwords. (default: .)
| Modifier and Type | Field and Description |
|---|---|
protected java.util.HashSet<java.lang.String> |
m_Words
The hash set containing the list of stopwords.
|
m_Stopwordsm_Debug, m_Initialized| Constructor and Description |
|---|
WordsFromFile() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
globalInfo()
Returns a string describing the stopwords scheme.
|
protected void |
initialize()
Performs intialization of the scheme.
|
protected boolean |
is(java.lang.String word)
Returns true if the given string is a stop word.
|
java.lang.String |
stopwordsTipText()
Returns the tip text for this property.
|
getOptions, getStopwords, listOptions, read, setOptions, setStopwordsdebug, debugTipText, error, getDebug, isStopword, reset, setDebugprotected java.util.HashSet<java.lang.String> m_Words
public java.lang.String globalInfo()
globalInfo in class AbstractStopwordspublic java.lang.String stopwordsTipText()
stopwordsTipText in class AbstractFileBasedStopwordsprotected void initialize()
initialize in class AbstractStopwordsprotected boolean is(java.lang.String word)
is in class AbstractStopwordsword - the word to test