Interface LabelFilter

  • All Superinterfaces:
    Predicate<CharSequence>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface LabelFilter
    extends Predicate<CharSequence>
    A cluster label candidate filter.
    Since:
    4.1.0
    • Method Detail

      • test

        boolean test​(CharSequence label)
        Specified by:
        test in interface Predicate<CharSequence>
        Parameters:
        label - The label to test. Input labels may have mixed case, depending on the algorithm and their surface forms collected from input documents.
        Returns:
        Return false if the label candidate should be ignored in processing.