conflicts_top_by_priority

lexnlp.extract.en.dict_entities.conflicts_top_by_priority(conflicting_entities_aliases: List[Tuple[Tuple[int, str, int, List[Tuple]], Tuple]]) → List[Tuple[Tuple[int, str, int, List[Tuple]], 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: