Class MultiStopwords

  • All Implemented Interfaces:
    java.io.Serializable, OptionHandler, StopwordsHandler

    public class MultiStopwords
    extends AbstractStopwords
    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:

     -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:
    Serialized Form
    • Constructor Detail

      • MultiStopwords

        public MultiStopwords()
    • Method Detail

      • globalInfo

        public java.lang.String globalInfo()
        Description copied from class: AbstractStopwords
        Returns a string describing the stopwords scheme.
        Specified by:
        globalInfo in class AbstractStopwords
        Returns:
        a description suitable for displaying in the gui
      • setOptions

        public void setOptions​(java.lang.String[] options)
                        throws java.lang.Exception
        Parses a given list of options.
        Specified by:
        setOptions in interface OptionHandler
        Overrides:
        setOptions in class AbstractStopwords
        Parameters:
        options - the list of options as an array of strings
        Throws:
        java.lang.Exception - if an option is not supported
      • getOptions

        public java.lang.String[] getOptions()
        Gets the current settings of the Classifier.
        Specified by:
        getOptions in interface OptionHandler
        Overrides:
        getOptions in class AbstractStopwords
        Returns:
        an array of strings suitable for passing to setOptions
      • setStopwords

        public void setStopwords​(StopwordsHandler[] value)
        Sets the stopwords algorithms.
        Parameters:
        value - the algorithms
      • getStopwords

        public StopwordsHandler[] getStopwords()
        Returns the stopwords algorithms.
        Returns:
        the algorithms
      • stopwordsTipText

        public java.lang.String stopwordsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the explorer/experimenter gui