operators.candidates.extractor.DocEntityDictSpanExtractor
- class operators.candidates.extractor.DocEntityDictSpanExtractor(entity_dict_path, doc_entity_dict_path, field, ignore_case=False, link_entities=True, col_suffix=None)
(Optimized for keyword aliases) SpanExtractor that yields (and optionally links) spans, given an entity-to-aliases dictionary and doc-id-to-entity dictionary.