Skip to content

mention_recall

allennlp_models.coref.metrics.mention_recall

[SOURCE]


MentionRecall#

@Metric.register("mention_recall")
class MentionRecall(Metric):
 | def __init__(self) -> None

__call__#

class MentionRecall(Metric):
 | ...
 | @overrides
 | def __call__(
 |     self,
 |     batched_top_spans: torch.Tensor,
 |     batched_metadata: List[Dict[str, Any]]
 | )

get_metric#

class MentionRecall(Metric):
 | ...
 | @overrides
 | def get_metric(self, reset: bool = False) -> float

reset#

class MentionRecall(Metric):
 | ...
 | @overrides
 | def reset(self)