nordlys.logic.el.el_utils module

EL Utils

Utility methods for entity linking.

Author: Faegheh Hasibi

nordlys.logic.el.el_utils.is_name_entity(en_id)[source]

Returns true if the entity is considered as proper name entity.

nordlys.logic.el.el_utils.load_kb_snapshot(kb_file)[source]

Loads DBpedia Snapshot of proper name entities (used for entity linking).

nordlys.logic.el.el_utils.to_elq_eval(annotations, output_file)[source]

Write entity annotations to ELQ evaluation format.

Parameters:linked_ens – {qid:[{“mention”:xx, “entity”: yy, “score”:zz}, ..], ..}