entity_alias

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

Create entity alias tuple. This method is just for ensuring type safety of alias components in IDE. :param alias_id: Alias id. None if there is no id. :param alias: Alias text - ‘Mississippi’, ‘MS’, ‘CAN’, … :param language: Language - en, de, fr, … :param is_abbreviation: Is this alias representing an abbreviation or not. Abbreviations have different rules of searching. :return: A tuple representing the alias in format: (alias_text, lang, is_abbreviation, alias_id)