Update sacrebleu_manual.py
Browse files- sacrebleu_manual.py +3 -3
sacrebleu_manual.py
CHANGED
|
@@ -31,13 +31,13 @@ _CITATION = """
|
|
| 31 |
class SacrebleuManual(datasets.GeneratorBasedBuilder):
|
| 32 |
VERSION = datasets.Version("1.0.0")
|
| 33 |
|
| 34 |
-
names = list(sacrebleu.get_available_testsets())
|
| 35 |
print(names)
|
| 36 |
|
| 37 |
BUILDER_CONFIGS = [
|
| 38 |
datasets.BuilderConfig(name=f"{name.replace('/', '_')}_{langpair}", version=datasets.Version("1.0.0"), description="")
|
| 39 |
-
for name in
|
| 40 |
-
for langpair in sacrebleu.get_langpairs_for_testset(name)
|
| 41 |
]
|
| 42 |
|
| 43 |
def _info(self):
|
|
|
|
| 31 |
class SacrebleuManual(datasets.GeneratorBasedBuilder):
|
| 32 |
VERSION = datasets.Version("1.0.0")
|
| 33 |
|
| 34 |
+
names = [name for name in list(sacrebleu.get_available_testsets()) if name not in ["wmt23", "wmt24"] or "wmt21" in name]
|
| 35 |
print(names)
|
| 36 |
|
| 37 |
BUILDER_CONFIGS = [
|
| 38 |
datasets.BuilderConfig(name=f"{name.replace('/', '_')}_{langpair}", version=datasets.Version("1.0.0"), description="")
|
| 39 |
+
for name in names
|
| 40 |
+
for langpair in sacrebleu.get_langpairs_for_testset(name)
|
| 41 |
]
|
| 42 |
|
| 43 |
def _info(self):
|