add_alias_to_entity

lexnlp.extract.en.dict_entities.add_alias_to_entity()

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: