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

Version: 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.


| @classmethod
| load(cls, meta: Dict[Text, Any], model_dir: Text, model_metadata: Optional[Metadata] = None, cached_component: Optional["RegexEntityExtractor"] = None, **kwargs: Any, ,) -> "RegexEntityExtractor"

Loads trained component (see parent class for full docstring).


| 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.