    def get_metric(self, reset: bool):
        """
        Compute and return the metric. Optionally also call `self.reset`.
        """
        raise NotImplementedError
Compute and return the metric. Optionally also call `self.reset`.
allennlp/training/metrics/metric.py