public abstract class AbstractStopwords extends java.lang.Object implements OptionHandler, StopwordsHandler, java.io.Serializable
| Constructor and Description |
|---|
AbstractStopwords() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
debugTipText()
Returns the tip text for this property
|
boolean |
getDebug()
Get whether debugging is turned on.
|
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
abstract java.lang.String |
globalInfo()
Returns a string describing the stopwords scheme.
|
boolean |
isStopword(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 |
setDebug(boolean debug)
Set debugging mode.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeCopypublic abstract java.lang.String globalInfo()
public java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
setOptions in interface OptionHandleroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlerpublic void setDebug(boolean debug)
debug - true if debug output should be printedpublic boolean getDebug()
public java.lang.String debugTipText()
public boolean isStopword(java.lang.String word)
isStopword in interface StopwordsHandlerword - the word to test