def METHOD_NAME(self, training_data, config, **kwargs):
    # type: (TrainingData) -> None
    for key, value in list(training_data.entity_synonyms.items()):
        self.add_entities_if_synonyms(key, value)
    for example in training_data.entity_examples:
        for entity in example.get("entities", []):
            entity_val = example.text[entity["start"]:entity["end"]]
            self.add_entities_if_synonyms(entity_val,
                                          str(entity.get("value")))