public abstract class AbstractStopwords extends Object implements OptionHandler, StopwordsHandler, Serializable
| Constructor and Description |
|---|
AbstractStopwords() |
| Modifier and Type | Method and Description |
|---|---|
String |
debugTipText()
Returns the tip text for this property
|
boolean |
getDebug()
Get whether debugging is turned on.
|
String[] |
getOptions()
Gets the current settings of the Classifier.
|
abstract String |
globalInfo()
Returns a string describing the stopwords scheme.
|
boolean |
isStopword(String word)
Returns true if the given string is a stop word.
|
Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setDebug(boolean debug)
Set debugging mode.
|
void |
setOptions(String[] options)
Parses a given list of options.
|
public abstract String globalInfo()
public Enumeration<Option> listOptions()
listOptions in interface OptionHandlerpublic void setOptions(String[] options) throws Exception
setOptions in interface OptionHandleroptions - the list of options as an array of stringsException - if an option is not supportedpublic String[] getOptions()
getOptions in interface OptionHandlerpublic void setDebug(boolean debug)
debug - true if debug output should be printedpublic boolean getDebug()
public String debugTipText()
public boolean isStopword(String word)
isStopword in interface StopwordsHandlerword - the word to testCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.