Enum Class EnglishStopWords

java.lang.Object
java.lang.Enum<EnglishStopWords>
smile.nlp.dictionary.EnglishStopWords
All Implemented Interfaces:
Serializable, Comparable<EnglishStopWords>, Constable, Dictionary, StopWords

public enum EnglishStopWords extends Enum<EnglishStopWords> implements StopWords
Several sets of English stop words.
  • Enum Constant Details Link icon

    • DEFAULT Link icon

      public static final EnglishStopWords DEFAULT
      Default stop words list.
    • COMPREHENSIVE Link icon

      public static final EnglishStopWords COMPREHENSIVE
      A very long list of stop words.
    • GOOGLE Link icon

      public static final EnglishStopWords GOOGLE
      The stop words list used by Google.
    • MYSQL Link icon

      public static final EnglishStopWords MYSQL
      The stop words list used by MySQL FullText feature.
  • Method Details Link icon

    • values Link icon

      public static EnglishStopWords[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf Link icon

      public static EnglishStopWords valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • contains Link icon

      public boolean contains(String word)
      Description copied from interface: Dictionary
      Returns true if this dictionary contains the specified word.
      Specified by:
      contains in interface Dictionary
      Parameters:
      word - the query word.
      Returns:
      true if this dictionary contains the specified word.
    • size Link icon

      public int size()
      Description copied from interface: Dictionary
      Returns the number of words in this dictionary.
      Specified by:
      size in interface Dictionary
      Returns:
      the number of words in this dictionary.
    • iterator Link icon

      public Iterator<String> iterator()
      Description copied from interface: Dictionary
      Returns an iterator over the words in this dictionary.
      Specified by:
      iterator in interface Dictionary
      Returns:
      the iterator.