conflicts_take_first_by_id¶
-
lexnlp.extract.en.dict_entities.
conflicts_take_first_by_id
(conflicting_entities_aliases: typing.List[typing.Tuple[typing.Tuple[int, str, int, typing.List[typing.Tuple]], typing.Tuple]]) → typing.List[typing.Tuple[typing.Tuple[int, str, int, typing.List[typing.Tuple]], typing.Tuple[str, str, bool, int]]]¶ Default conflict resolving function for dropping all entities detected at the same position excepting the one having the smallest id. To be used in find_dict_entities() method. :param conflicting_entities_aliases: list of (entity, alias) pairs :return: