You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ROUGE class does not initialize the scorer attribute in its constructor. However, the compute method attempts to use it directly, which causes an error under all circumstances.
Describe the bug
The
ROUGE
class does not initialize thescorer
attribute in its constructor. However, the compute method attempts to use it directly, which causes an error under all circumstances.lighteval/src/lighteval/metrics/metrics_sample.py
Lines 442 to 501 in a1c610d
Proposed Solution
Add an initialization for
self.scorer
asNone
in the__init__
method.To Reproduce
Run any test involving ROUGE, such as the following:
Expected behavior
The test should execute without issues.
Version info
The issue was encountered with the version installed directly from the
main
branch.The text was updated successfully, but these errors were encountered: