diff --git a/src/lighteval/metrics/metrics_sample.py b/src/lighteval/metrics/metrics_sample.py index 2081b5606..fb0dca4fd 100644 --- a/src/lighteval/metrics/metrics_sample.py +++ b/src/lighteval/metrics/metrics_sample.py @@ -481,6 +481,7 @@ def __init__( self.normalize_gold = normalize_gold self.normalize_pred = normalize_pred self.tokenizer = tokenizer + self.scorer = None def compute(self, golds: list[str], predictions: list[str], **kwargs) -> float | dict: """Computes the metric(s) over a list of golds and predictions for one single sample.