nordlys.logic.features.ftr_entity_mention module

FTR Entity Mention

Implements features related to an entity-mention pair.

Author:Faegheh Hasibi
class nordlys.logic.features.ftr_entity_mention.FtrEntityMention(en_id, mention, entity)[source]

Bases: object

commonness()[source]

Computes probability of entity e being linked by mention: link (e,m)/link(m) Returns zero if link(m) = 0

mct()[source]

Returns True if mention contains the title of entity

pos1()[source]

Returns position of the occurrence of mention in the short abstract.

tcm()[source]

Returns True if title of entity contains mention

tem()[source]

Returns True if title of entity equals mention.