Class NoOpStopwords
- java.lang.Object
-
- io.annot8.components.stopwords.resources.NoOpStopwords
-
- All Implemented Interfaces:
io.annot8.api.components.Annot8Component,io.annot8.api.components.Resource,Stopwords,AutoCloseable
public final class NoOpStopwords extends Object implements Stopwords
An empty stopwords resource, which returns false for all words
-
-
Constructor Summary
Constructors Constructor Description NoOpStopwords()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLanguage()Return the language for this resource, e.g.booleanisStopword(String word)Returns true if a word is a stopword, or false otherwise
-
-
-
Method Detail
-
getLanguage
public String getLanguage()
Description copied from interface:StopwordsReturn the language for this resource, e.g. en- Specified by:
getLanguagein interfaceStopwords
-
isStopword
public boolean isStopword(String word)
Description copied from interface:StopwordsReturns true if a word is a stopword, or false otherwise- Specified by:
isStopwordin interfaceStopwords
-
-