Skip to content

Commit 6ca82be

Browse files
committed
add cvqa japanese subset
1 parent 9f673d9 commit 6ca82be

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/eval_mm/metrics/cvqa_scorer.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# cvqa_scorer.py
2-
from .scorer import Scorer, AggregateOutput
3-
from collections import defaultdict
2+
from .scorer import Scorer, AggregateOutput, ScorerConfig
43

54

65
class CVQAScorer(Scorer):
@@ -23,10 +22,10 @@ def aggregate(self, scores: list[int]) -> AggregateOutput:
2322
return output
2423

2524

26-
def test_mechaja_scorer():
25+
def test_cvqa_scorer():
2726
refs = ["私は猫です。"]
2827
preds = ["私は猫です。"]
29-
scorer = CVQAScorer()
28+
scorer = CVQAScorer(ScorerConfig())
3029
scores = CVQAScorer.score(refs, preds)
3130
assert scores == [1]
3231
output = scorer.aggregate(scores)

0 commit comments

Comments
 (0)