Package weka.core.stopwords
Class MultiStopwords
java.lang.Object
weka.core.stopwords.AbstractStopwords
weka.core.stopwords.MultiStopwords
- All Implemented Interfaces:
Serializable,OptionHandler,StopwordsHandler
Applies the specified stopwords algorithms one after other.
As soon as a word has been identified as stopword, the loop is exited. Valid options are:
As soon as a word has been identified as stopword, the loop is exited. Valid options are:
-D If set, stopword scheme is run in debug mode and may output additional info to the console
-stopwords <classname + options> The stopwords algorithms to apply sequentially. (default: none)
- Version:
- $Revision: 10978 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Gets the current settings of the Classifier.Returns the stopwords algorithms.Returns a string describing the stopwords scheme.Returns an enumeration describing the available options.voidsetOptions(String[] options) Parses a given list of options.voidsetStopwords(StopwordsHandler[] value) Sets the stopwords algorithms.Returns the tip text for this property.Methods inherited from class weka.core.stopwords.AbstractStopwords
debugTipText, getDebug, isStopword, setDebug
-
Constructor Details
-
MultiStopwords
public MultiStopwords()
-
-
Method Details
-
globalInfo
Description copied from class:AbstractStopwordsReturns a string describing the stopwords scheme.- Specified by:
globalInfoin classAbstractStopwords- Returns:
- a description suitable for displaying in the gui
-
listOptions
Returns an enumeration describing the available options.- Specified by:
listOptionsin interfaceOptionHandler- Overrides:
listOptionsin classAbstractStopwords- Returns:
- an enumeration of all the available options.
-
setOptions
Parses a given list of options.- Specified by:
setOptionsin interfaceOptionHandler- Overrides:
setOptionsin classAbstractStopwords- Parameters:
options- the list of options as an array of strings- Throws:
Exception- if an option is not supported
-
getOptions
Gets the current settings of the Classifier.- Specified by:
getOptionsin interfaceOptionHandler- Overrides:
getOptionsin classAbstractStopwords- Returns:
- an array of strings suitable for passing to setOptions
-
setStopwords
Sets the stopwords algorithms.- Parameters:
value- the algorithms
-
getStopwords
Returns the stopwords algorithms.- Returns:
- the algorithms
-
stopwordsTipText
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-