notice

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

rasa.nlu.training_data.util

transform_entity_synonyms

transform_entity_synonyms(synonyms, known_synonyms: Optional[Dict[Text, Any]] = None) -> Dict[Text, Any]

Transforms the entity synonyms into a text->value dictionary

remove_untrainable_entities_from

remove_untrainable_entities_from(example: Dict[Text, Any]) -> None

Remove untrainable entities from serialised training example example.

Entities with an untrainable extractor will be removed. Untrainable extractors are defined in rasa.nlu.constants.PRETRAINED_EXTRACTORS.

Arguments:

  • example - Serialised training example to inspect.