Enum Class EnglishDictionary

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

public enum EnglishDictionary extends Enum<EnglishDictionary> implements Dictionary
A concise dictionary of common terms in English.
  • Enum Constant Details

    • CONCISE

      public static final EnglishDictionary CONCISE
      A concise dictionary of common terms in English.
  • Method Details

    • values

      public static EnglishDictionary[] 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

      public static EnglishDictionary 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

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

      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

      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.