This is documentation for Rasa Open Source Documentation v2.2.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (2.6.x).

Version: 2.2.x


RegexEntityExtractor Objects

class RegexEntityExtractor(EntityExtractor)

Searches for entities in the user's message using the lookup tables and regexes defined in the training data.


| __init__(component_config: Optional[Dict[Text, Any]] = None, patterns: Optional[List[Dict[Text, Text]]] = None)

Extracts entities using the lookup tables and/or regexes defined in the training data.


| persist(file_name: Text, model_dir: Text) -> Optional[Dict[Text, Any]]

Persist this model into the passed directory. Return the metadata necessary to load the model again.