Class ClassLabelFromPatternFilter.Par

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String negative
      Names for positive and negative classes.
      static OptionID NEGATIVE_ID
      Class label to assign to negative instances.
      (package private) java.util.regex.Pattern pattern
      Matching pattern.
      static OptionID PATTERN_ID
      Pattern for recognizing positive objects.
      (package private) java.lang.String positive
      Names for positive and negative classes.
      static OptionID POSITIVE_ID
      Class label to assign to positive instances.
    • Constructor Summary

      Constructors 
      Constructor Description
      Par()  
    • Field Detail

      • PATTERN_ID

        public static final OptionID PATTERN_ID
        Pattern for recognizing positive objects.
      • POSITIVE_ID

        public static final OptionID POSITIVE_ID
        Class label to assign to positive instances.
      • NEGATIVE_ID

        public static final OptionID NEGATIVE_ID
        Class label to assign to negative instances.
      • pattern

        java.util.regex.Pattern pattern
        Matching pattern.
      • positive

        java.lang.String positive
        Names for positive and negative classes.
      • negative

        java.lang.String negative
        Names for positive and negative classes.
    • Constructor Detail

      • Par

        public Par()
    • Method Detail

      • configure

        public void configure​(Parameterization config)
        Description copied from interface: Parameterizer
        Configure the class.

        Note: the status is collected by the parameterization object, so that multiple errors may arise and be reported in one run.

        Specified by:
        configure in interface Parameterizer
        Parameters:
        config - Parameterization
      • make

        public ClassLabelFromPatternFilter make()
        Description copied from interface: Parameterizer
        Make an instance after successful configuration.

        Note: your class should return the exact type, only this very broad interface should use Object as return type.

        Specified by:
        make in interface Parameterizer
        Returns:
        a new instance