gnes.score_fn.doc module

class gnes.score_fn.doc.CoordDocScoreFn(score_mode='multiply', *args, **kwargs)[source]

Bases: gnes.score_fn.base.CombinedScoreFn

score = score * query_coordination query_coordination: #chunks recalled / #chunks in this doc

Parameters:score_mode (str) – specifies how the computed scores are combined
train(*args, **kwargs)

Train the model, need to be overrided

class gnes.score_fn.doc.WeightedDocScoreFn(score_mode='multiply', *args, **kwargs)[source]

Bases: gnes.score_fn.base.CombinedScoreFn

Parameters:score_mode (str) – specifies how the computed scores are combined
train(*args, **kwargs)

Train the model, need to be overrided