public class Dl4jWordsFromFile extends Dl4jAbstractStopwords
Constructor and Description |
---|
Dl4jWordsFromFile() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
java.util.List<java.lang.String> |
getStopList()
Returns the list of stopwords.
|
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.lang.String |
globalInfo()
Returns a string describing the stopwords scheme.
|
void |
initialize()
Performs intialization of the scheme.
|
java.util.Enumeration<weka.core.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.
|
java.lang.String |
stopwordsTipText()
Returns the tip text for this property.
|
debugTipText, getDebug, isStopword, setDebug
public java.lang.String globalInfo()
globalInfo
in class weka.core.stopwords.AbstractStopwords
public java.lang.String stopwordsTipText()
public void initialize()
initialize
in class Dl4jAbstractStopwords
public java.util.List<java.lang.String> getStopList()
Dl4jAbstractStopwords
getStopList
in class Dl4jAbstractStopwords
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class weka.core.stopwords.AbstractStopwords
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class weka.core.stopwords.AbstractStopwords
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
setOptions
in class weka.core.stopwords.AbstractStopwords
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.io.File getStopwords()
public void setStopwords(java.io.File value)
value
- the file containing the stopwords