Skip to content

Commit 2ef9740

Browse files
fix: scorer attribute initialization in ROUGE (#471)
Co-authored-by: Clémentine Fourrier <22726840+clefourrier@users.noreply.github.com>
1 parent 9ff194d commit 2ef9740

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lighteval/metrics/metrics_sample.py

+1
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ def __init__(
481481
self.normalize_gold = normalize_gold
482482
self.normalize_pred = normalize_pred
483483
self.tokenizer = tokenizer
484+
self.scorer = None
484485

485486
def compute(self, golds: list[str], predictions: list[str], **kwargs) -> float | dict:
486487
"""Computes the metric(s) over a list of golds and predictions for one single sample.

0 commit comments

Comments
 (0)