codebleu / tests.py
github-actions
chore(auto): update changelog and version [0.4.0]
41db68b
raw
history blame
265 Bytes
test_cases = [
{"predictions": [0, 0], "references": [1, 1], "result": {"metric_score": 0}},
{"predictions": [1, 1], "references": [1, 1], "result": {"metric_score": 1}},
{"predictions": [1, 0], "references": [1, 1], "result": {"metric_score": 0.5}},
]