Muennighoff
commited on
Commit
•
92f7b22
1
Parent(s):
5602cf0
fix url
Browse files- xwinograd.py +3 -4
xwinograd.py
CHANGED
@@ -33,7 +33,7 @@ that can be used for evaluation of cross-lingual commonsense reasoning capabilit
|
|
33 |
|
34 |
#_URL = "https://github.com/yandex-research/crosslingual_winograd/blob/main/dataset.tsv"
|
35 |
#_URL = "https://huggingface.co/datasets/muennighoff/xwinograd/resolve/main/data/xwinograd.tsv"
|
36 |
-
_URL = "https://huggingface.co/datasets/Muennighoff/xwinograd/
|
37 |
|
38 |
import json
|
39 |
import random
|
@@ -123,9 +123,8 @@ class XWinograd(datasets.GeneratorBasedBuilder):
|
|
123 |
|
124 |
def _split_generators(self, dl_manager):
|
125 |
downloaded_files = dl_manager.download_and_extract(_URL)
|
126 |
-
return [
|
127 |
-
|
128 |
-
]
|
129 |
|
130 |
def _generate_examples(self, filepath):
|
131 |
"""This function returns the examples in the raw (text) form."""
|
|
|
33 |
|
34 |
#_URL = "https://github.com/yandex-research/crosslingual_winograd/blob/main/dataset.tsv"
|
35 |
#_URL = "https://huggingface.co/datasets/muennighoff/xwinograd/resolve/main/data/xwinograd.tsv"
|
36 |
+
_URL = "https://huggingface.co/datasets/Muennighoff/xwinograd/resolve/main/data/xwinograd.tsv"
|
37 |
|
38 |
import json
|
39 |
import random
|
|
|
123 |
|
124 |
def _split_generators(self, dl_manager):
|
125 |
downloaded_files = dl_manager.download_and_extract(_URL)
|
126 |
+
return [datasets.SplitGenerator(name=datasets.Split.TEST,
|
127 |
+
gen_kwargs={'filepath': downloaded_files, 'split': 'test'})]
|
|
|
128 |
|
129 |
def _generate_examples(self, filepath):
|
130 |
"""This function returns the examples in the raw (text) form."""
|