Class ContextLabelFilter

    • Field Detail

      • enabled

        public final AttrBoolean enabled
        Enables or disables this filter.
    • Constructor Detail

      • ContextLabelFilter

        protected ContextLabelFilter​(String enabledLabel)
    • Method Detail

      • filter

        public abstract void filter​(PreprocessingContext context,
                                    boolean[] acceptedStems,
                                    boolean[] acceptedPhrases)
        Called to perform label filtering.
        Parameters:
        context - contains words and phrases to be filtered
        acceptedStems - the filter should set to false those elements that correspond to the stems to be filtered out
        acceptedPhrases - the filter should set to false those elements that correspond to the phrases to be filtered out
      • isEnabled

        public final boolean isEnabled()
        Returns:
        true if the filter is enabled.