add_alias_to_entity

lexnlp.extract.en.dict_entities.add_alias_to_entity(entity: typing.Tuple[int, str, int, typing.List[typing.Tuple]], alias: str, language: str = None, is_abbreviation: bool = False, alias_id: int = None)

Add alias to entity. Entities are in the form of tuples: (entity_id, name, [(alias_text, lang, is_abbrev, alias_id), …]). This method is just for more comfortable development - to ensure type safety and avoid accessing properties of entities by their indexes. :param entity: :param alias: :param language: :param is_abbreviation: :param alias_id: Alias id or None if identifying is not supported. :return: