Package com.gengoai.hermes.en
Class ENStopWords
- java.lang.Object
-
- com.gengoai.hermes.morphology.StopWords
-
- com.gengoai.hermes.en.ENStopWords
-
- All Implemented Interfaces:
Serializable
public class ENStopWords extends StopWords
English StopWords- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.gengoai.hermes.morphology.StopWords
StopWords.NoOptStopWords
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StopWords
getInstance()
boolean
isStopWord(String word)
Checks if the given word is a stopwordprotected boolean
isTokenStopWord(Annotation token)
Checks if the given token is a stopword-
Methods inherited from class com.gengoai.hermes.morphology.StopWords
getStopWords, hasOnlyContentWords, hasStopWord, hasStopWord, isContentWord, isStopWord, isStopWord
-
-
-
-
Method Detail
-
getInstance
public static StopWords getInstance()
- Returns:
- the singleton instance of the ENStopWords class
-
isStopWord
public boolean isStopWord(String word)
Description copied from class:StopWords
Checks if the given word is a stopword- Specified by:
isStopWord
in classStopWords
- Parameters:
word
- the word- Returns:
- True if a stopword, False if a content word.
-
isTokenStopWord
protected boolean isTokenStopWord(Annotation token)
Description copied from class:StopWords
Checks if the given token is a stopword- Specified by:
isTokenStopWord
in classStopWords
- Parameters:
token
- the token- Returns:
- True if a stopword, False if a content word.
-
-