Package smile.nlp.dictionary
Class EnglishPunctuations
java.lang.Object
smile.nlp.dictionary.EnglishPunctuations
- All Implemented Interfaces:
Dictionary
,Punctuations
Punctuation marks in English.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if this dictionary contains the specified word.static EnglishPunctuations
Returns the singleton instance.iterator()
Returns an iterator over the words in this dictionary.int
size()
Returns the number of words in this dictionary.
-
Method Details
-
getInstance
Returns the singleton instance.- Returns:
- the singleton instance.
-
contains
Description copied from interface:Dictionary
Returns true if this dictionary contains the specified word.- Specified by:
contains
in interfaceDictionary
- 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 interfaceDictionary
- Returns:
- the number of words in this dictionary.
-
iterator
Description copied from interface:Dictionary
Returns an iterator over the words in this dictionary.- Specified by:
iterator
in interfaceDictionary
- Returns:
- the iterator.
-