add_aliases_to_entity

lexnlp.extract.en.dict_entities.add_aliases_to_entity(entity: Tuple[int, str, int, List[Tuple[str, str, bool]]], aliases_csv: str, language: str = None, is_abbreviation: bool = None, alias_id: int = None, csv_separator: str = ';')

Add alias to entity. Entities are in the form of tuples: (entity_id, name, [(alias_text, lang, is_abbrev, alias_id), …]). This method can be used if there is a comma separated list of aliases stored somewhere and they all have the same language and is_abbreviation value. This method is just for more comfortable development - to ensure type safety and avoid accessing properties of entities by their indexes. :param entity: :param aliases_csv: :param language: :param is_abbreviation: :param alias_id: :param csv_separator: :return: