Class RegexFieldProcessor

java.lang.Object
org.tribuo.data.columnar.processors.field.RegexFieldProcessor
All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>, FieldProcessor

public class RegexFieldProcessor extends Object implements FieldProcessor
A FieldProcessor which applies a regex to a field and generates ColumnarFeatures based on the matches.
  • Constructor Details

    • RegexFieldProcessor

      Constructs a field processor which emits features when the field value matches the supplied regex.
      Parameters:
      fieldName - The field name to read.
      regex - The regex to use for matching.
      modes - The matching mode.
    • RegexFieldProcessor

      Constructs a field processor which emits features when the field value matches the supplied regex.

      The regex is compiled on construction.

      Parameters:
      fieldName - The field name to read.
      regex - The regex to use for matching.
      modes - The matching mode.
  • Method Details