Class EnglishPunctuations

java.lang.Object
smile.nlp.dictionary.EnglishPunctuations
All Implemented Interfaces:
Dictionary, Punctuations

public class EnglishPunctuations extends Object implements Punctuations
Punctuation marks in English.
  • Method Details

    • getInstance

      public static EnglishPunctuations getInstance()
      Returns the singleton instance.
      Returns:
      the singleton instance.
    • contains

      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

      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.