nordlys.logic.query.mention module

Mention

Class for entity mentions (used for entity linking)

  • Generates all candidate entities for a mention
  • Computes commonness for a mention-entity pairs
class nordlys.logic.query.mention.Mention(mention, entity, cmns_th=None)[source]

Bases: object

get_cand_ens()[source]

Returns all candidate entities for the mention

Returns:{en:cmn_score}
nordlys.logic.query.mention.main(args)[source]