Class PatternKeywordMarkerFilter

    • Constructor Detail

      • PatternKeywordMarkerFilter

        public PatternKeywordMarkerFilter​(TokenStream in,
                                          java.util.regex.Pattern pattern)
        Create a new PatternKeywordMarkerFilter, that marks the current token as a keyword if the tokens term buffer matches the provided Pattern via the KeywordAttribute.
        Parameters:
        in - TokenStream to filter
        pattern - the pattern to apply to the incoming term buffer