nordlys.logic.el.cmns module

Commonness Entity Linking Approach

Class for commonness entity linking approach

Author:Faegheh Hasibi
class nordlys.logic.el.cmns.Cmns(query, entity, threshold=None, cmns_th=0.1)[source]

Bases: object

disambiguate()[source]

Selects only one entity per mention.

Return [{“mention”:
 xx, “entity”: yy, “score”: zz}, …] #dictionary {mention: (en_id, score), ..}

Links the query to the entity.

dictionary {mention: (en_id, score), ..}

rank_ens()[source]

Detects mention and rank entities for each mention

nordlys.logic.el.cmns.main(args)[source]