Skip to content

unigram_recall

[ allennlp.training.metrics.unigram_recall ]


UnigramRecall Objects#

class UnigramRecall(Metric):
 | def __init__(self) -> None

Unigram top-K recall. This does not take word order into account. Assumes integer labels, with each item to be classified having a single correct class.

get_metric#

 | def get_metric(self, reset: bool = False)

Returns

  • The accumulated recall.

reset#

 | @overrides
 | def reset(self)