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, setDebugpublic java.lang.String globalInfo()
globalInfo in class weka.core.stopwords.AbstractStopwordspublic java.lang.String stopwordsTipText()
public void initialize()
initialize in class Dl4jAbstractStopwordspublic java.util.List<java.lang.String> getStopList()
Dl4jAbstractStopwordsgetStopList in class Dl4jAbstractStopwordspublic java.util.Enumeration<weka.core.Option> listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class weka.core.stopwords.AbstractStopwordspublic java.lang.String[] getOptions()
getOptions in interface weka.core.OptionHandlergetOptions in class weka.core.stopwords.AbstractStopwordspublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
setOptions in interface weka.core.OptionHandlersetOptions in class weka.core.stopwords.AbstractStopwordsoptions - 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