public class MultiStopwords extends AbstractStopwords
-D If set, stopword scheme is run in debug mode and may output additional info to the console
-stopwords <classname + options> The stopwords algorithms to apply sequentially. (default: none)
| Modifier and Type | Field and Description |
|---|---|
protected StopwordsHandler[] |
m_Stopwords
the stopwords algorithms to use.
|
m_Debug, m_Initialized| Constructor and Description |
|---|
MultiStopwords() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
StopwordsHandler[] |
getStopwords()
Returns the stopwords algorithms.
|
java.lang.String |
globalInfo()
Returns a string describing the stopwords scheme.
|
protected boolean |
is(java.lang.String word)
Returns true if the given string is a stop word.
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setStopwords(StopwordsHandler[] value)
Sets the stopwords algorithms.
|
java.lang.String |
stopwordsTipText()
Returns the tip text for this property.
|
debug, debugTipText, error, getDebug, initialize, isStopword, reset, setDebugprotected StopwordsHandler[] m_Stopwords
public java.lang.String globalInfo()
AbstractStopwordsglobalInfo in class AbstractStopwordspublic java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class AbstractStopwordspublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
setOptions in interface OptionHandlersetOptions in class AbstractStopwordsoptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class AbstractStopwordspublic void setStopwords(StopwordsHandler[] value)
value - the algorithmspublic StopwordsHandler[] getStopwords()
public java.lang.String stopwordsTipText()
protected boolean is(java.lang.String word)
is in class AbstractStopwordsword - the word to test