Class 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 Detail

      • NoOpStopwords

        public NoOpStopwords()
    • Method Detail

      • getLanguage

        public String getLanguage()
        Description copied from interface: Stopwords
        Return the language for this resource, e.g. en
        Specified by:
        getLanguage in interface Stopwords
      • isStopword

        public boolean isStopword​(String word)
        Description copied from interface: Stopwords
        Returns true if a word is a stopword, or false otherwise
        Specified by:
        isStopword in interface Stopwords