Package com.gengoai.hermes.morphology
Class StopWords.NoOptStopWords
- java.lang.Object
-
- com.gengoai.hermes.morphology.StopWords
-
- com.gengoai.hermes.morphology.StopWords.NoOptStopWords
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- StopWords
public static class StopWords.NoOptStopWords extends StopWords
StopWords implementation that treats everything as a content word.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.gengoai.hermes.morphology.StopWords
StopWords.NoOptStopWords
-
-
Constructor Summary
Constructors Constructor Description NoOptStopWords()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
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.
-
-