nordlys.logic.features.ftr_mention module

FTR Mention

Implements mention feature.

Author:Faegheh Hasibi
class nordlys.logic.features.ftr_mention.FtrMention(mention, entity=None, cand_ens=None)[source]

Bases: object

len_ratio(q)[source]

Computes mention to query length.

matches()[source]

Number of entities whose surface form equals the mention. Uses both DBpedia and Freebase name variants.

mention_len()[source]

Number of terms in the mention