Package weka.core.stopwords

# Class RegExpFromFile

java.lang.Object
weka.core.stopwords.AbstractStopwords
weka.core.stopwords.AbstractFileBasedStopwords
weka.core.stopwords.RegExpFromFile

All Implemented Interfaces:
  `Serializable`, `OptionHandler`, `StopwordsHandler`

public class RegExpFromFile extends AbstractFileBasedStopwords
Uses the regular expressions stored in the file for determining whether a word is a stopword (ignored if pointing to a directory). One expression per line.

Valid options are:

     -D
      If set, stopword scheme is run in debug mode and
      may output additional info to the console

     -stopwords <file>
      The file containing the stopwords (ignored if directory)
      (default: .)

Version:
  $Revision: 10979 $
Author:
  fracpete (fracpete at waikato dot ac dot nz)
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RegExpFromFile()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `globalInfo()`
  Returns a string describing the stopwords scheme.
  `String`
  `stopwordsTipText()`
  Returns the tip text for this property.

  ### Methods inherited from class weka.core.stopwords.AbstractFileBasedStopwords

  `getOptions, getStopwords, listOptions, setOptions, setStopwords`

  ### Methods inherited from class weka.core.stopwords.AbstractStopwords

  `debugTipText, getDebug, isStopword, setDebug`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### RegExpFromFile

    public RegExpFromFile()

- ## Method Details

  - ### globalInfo

    public String globalInfo()
    Returns a string describing the stopwords scheme.
    Specified by:
      `globalInfo` in class `AbstractStopwords`
    Returns:
      a description suitable for displaying in the gui

  - ### stopwordsTipText

    public String stopwordsTipText()
    Returns the tip text for this property.
    Specified by:
      `stopwordsTipText` in class `AbstractFileBasedStopwords`
    Returns:
      tip text for this property suitable for displaying in the explorer/experimenter gui