Class EnglishPunctuations
java.lang.Object
smile.nlp.dictionary.EnglishPunctuations
- All Implemented Interfaces:
Dictionary, Punctuations
Punctuation marks in English.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if this dictionary contains the specified word.static EnglishPunctuationsReturns the singleton instance.iterator()Returns an iterator over the words in this dictionary.intsize()Returns the number of words in this dictionary.
-
Method Details
-
getInstance
Returns the singleton instance.- Returns:
- the singleton instance.
-
contains
Description copied from interface:DictionaryReturns true if this dictionary contains the specified word.- Specified by:
containsin interfaceDictionary- Parameters:
word- the query word.- Returns:
- true if this dictionary contains the specified word.
-
size
public int size()Description copied from interface:DictionaryReturns the number of words in this dictionary.- Specified by:
sizein interfaceDictionary- Returns:
- the number of words in this dictionary.
-
iterator
Description copied from interface:DictionaryReturns an iterator over the words in this dictionary.- Specified by:
iteratorin interfaceDictionary- Returns:
- the iterator.
-