Class CollectionStopwords
- java.lang.Object
-
- io.annot8.components.stopwords.resources.CollectionStopwords
-
- All Implemented Interfaces:
io.annot8.api.components.Annot8Component,io.annot8.api.components.Resource,Stopwords,AutoCloseable
public class CollectionStopwords extends Object implements Stopwords
-
-
Constructor Summary
Constructors Constructor Description CollectionStopwords(String language, Collection<String> stopwords)
-
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
-
-
-
Constructor Detail
-
CollectionStopwords
public CollectionStopwords(String language, Collection<String> stopwords)
-
-
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
-
-