Adds message features based on regex expressions.
Components that should be included in the pipeline before this component.
Returns the component's default config.
Constructs new features for regexes and lookup table using regex expressions.
config- Configuration for the component.
model_storage- Storage which graph components can use to persist and load themselves.
resource- Resource locator for this component which can be used to persist and load itself from the
execution_context- Information about the current graph run.
known_patterns- Regex Patterns the component should pre-load itself with.
Creates a new untrained component (see parent class for full docstring).
Trains the component with all patterns extracted from training data.
Processes the training examples (see parent class for full docstring).
Featurizes all given messages in-place.
the given list of messages which have been modified in-place
Loads trained component (see parent class for full docstring).
Validates that the component is configured properly.