smile.nlp.dictionary
Class EnglishPunctuations
- java.lang.Object
-
- smile.nlp.dictionary.EnglishPunctuations
-
- All Implemented Interfaces:
- Dictionary, Punctuations
public class EnglishPunctuations extends java.lang.Object implements Punctuations
Punctuation marks in English.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancontains(java.lang.String word)Returns true if this dictionary contains the specified word.static EnglishPunctuationsgetInstance()Returns the singleton instance.java.util.Iterator<java.lang.String>iterator()Returns an iterator over the elements in this dictionary.intsize()Returns the number of elements in this dictionary.
-
-
-
Method Detail
-
getInstance
public static EnglishPunctuations getInstance()
Returns the singleton instance.
-
contains
public boolean contains(java.lang.String word)
Description copied from interface:DictionaryReturns true if this dictionary contains the specified word.- Specified by:
containsin interfaceDictionary
-
size
public int size()
Description copied from interface:DictionaryReturns the number of elements in this dictionary.- Specified by:
sizein interfaceDictionary
-
iterator
public java.util.Iterator<java.lang.String> iterator()
Description copied from interface:DictionaryReturns an iterator over the elements in this dictionary.- Specified by:
iteratorin interfaceDictionary
-
-
DataMelt 3.0 © DataMelt by jWork.ORG