def METHOD_NAME(
    entity: Dict[Text, Any], examples: List[Dict[Text, Any]]
) -> "TrainingData":
    entity_synonyms = transform_entity_synonyms(examples)
    if entity["isRegexp"]:
        regex_features = DialogflowReader._extract_regex_features(entity, examples)
        return TrainingData([], entity_synonyms, regex_features, [])
    else:
        lookup_tables = DialogflowReader._extract_lookup_tables(entity, examples)
        return TrainingData([], entity_synonyms, [], lookup_tables)