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