public abstract class AbstractFileBasedStopwords extends AbstractStopwords
Constructor and Description |
---|
AbstractFileBasedStopwords() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
java.io.File |
getStopwords()
returns the file used for obtaining the stopwords, if the file represents a
directory then the default ones are used.
|
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(java.io.File value)
Sets the file containing the stopwords, null or a directory unset the
stopwords.
|
abstract java.lang.String |
stopwordsTipText()
Returns the tip text for this property.
|
debugTipText, getDebug, globalInfo, isStopword, setDebug
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
makeCopy
public java.util.Enumeration<Option> listOptions()
listOptions
in interface OptionHandler
listOptions
in class AbstractStopwords
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface OptionHandler
setOptions
in class AbstractStopwords
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class AbstractStopwords
public void setStopwords(java.io.File value)
value
- the file containing the stopwordspublic java.io.File getStopwords()
public abstract java.lang.String stopwordsTipText()