Class ClassLabelFromPatternFilter

    • Field Detail

      • labelcols

        it.unimi.dsi.fastutil.ints.IntArrayList labelcols
        Bitset of label columns
      • pattern

        java.util.regex.Pattern pattern
        Matching pattern.
    • Constructor Detail

      • ClassLabelFromPatternFilter

        public ClassLabelFromPatternFilter​(java.util.regex.Pattern pattern,
                                           java.lang.String positive,
                                           java.lang.String negative)
        Constructor.
        Parameters:
        pattern - Pattern for matching
        positive - Positive label
        negative - Negative label
      • ClassLabelFromPatternFilter

        public ClassLabelFromPatternFilter​(java.util.regex.Pattern pattern,
                                           SimpleClassLabel positive,
                                           SimpleClassLabel negative)
        Constructor.
        Parameters:
        pattern - Pattern for matching
        positive - Positive label
        negative - Negative label
    • Method Detail

      • data

        public java.lang.Object data​(int rnum)
        Description copied from interface: BundleStreamSource
        Access a particular object and representation.
        Parameters:
        rnum - Representation number
        Returns:
        Contained data