Commit
·
ae16501
1
Parent(s):
ed37b38
Update winogavil.py
Browse files- winogavil.py +4 -20
winogavil.py
CHANGED
@@ -40,11 +40,6 @@ _HOMEPAGE = "https://winogavil.github.io/"
|
|
40 |
_LICENSE = "https://creativecommons.org/licenses/by/4.0/"
|
41 |
|
42 |
_URL = "https://huggingface.co/datasets/nlphuji/winogavil/blob/main"
|
43 |
-
_URLS = {
|
44 |
-
"10_12": os.path.join(_URL, "game_10_12.csv"),
|
45 |
-
"5_6": os.path.join(_URL, "game_5_6.csv"),
|
46 |
-
}
|
47 |
-
|
48 |
|
49 |
class Winogavil(datasets.GeneratorBasedBuilder):
|
50 |
VERSION = datasets.Version("1.1.0")
|
@@ -54,14 +49,11 @@ class Winogavil(datasets.GeneratorBasedBuilder):
|
|
54 |
# BUILDER_CONFIG_CLASS = MyBuilderConfig
|
55 |
|
56 |
# You will be able to load one or the other configurations in the following list with
|
57 |
-
# data = datasets.load_dataset('winogavil', '
|
58 |
-
# data = datasets.load_dataset('winogavil', '5_6')
|
59 |
BUILDER_CONFIGS = [
|
60 |
-
datasets.BuilderConfig(name="
|
61 |
-
datasets.BuilderConfig(name="5_6", version=VERSION, description="Split with 5 or 6 candidates"),
|
62 |
]
|
63 |
|
64 |
-
DEFAULT_CONFIG_NAME = "10_12" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
65 |
print('winogavil.py BUILDER')
|
66 |
|
67 |
def _info(self):
|
@@ -111,16 +103,8 @@ class Winogavil(datasets.GeneratorBasedBuilder):
|
|
111 |
name=datasets.Split.TEST,
|
112 |
# These kwargs will be passed to _generate_examples
|
113 |
gen_kwargs={
|
114 |
-
"filepath": os.path.join(data_dir, "
|
115 |
-
"split": "
|
116 |
-
},
|
117 |
-
),
|
118 |
-
datasets.SplitGenerator(
|
119 |
-
name=datasets.Split.TEST,
|
120 |
-
# These kwargs will be passed to _generate_examples
|
121 |
-
gen_kwargs={
|
122 |
-
"filepath": os.path.join(data_dir, "game_5_6.csv"),
|
123 |
-
"split": "5_6",
|
124 |
},
|
125 |
)
|
126 |
]
|
|
|
40 |
_LICENSE = "https://creativecommons.org/licenses/by/4.0/"
|
41 |
|
42 |
_URL = "https://huggingface.co/datasets/nlphuji/winogavil/blob/main"
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
class Winogavil(datasets.GeneratorBasedBuilder):
|
45 |
VERSION = datasets.Version("1.1.0")
|
|
|
49 |
# BUILDER_CONFIG_CLASS = MyBuilderConfig
|
50 |
|
51 |
# You will be able to load one or the other configurations in the following list with
|
52 |
+
# data = datasets.load_dataset('winogavil', 'test')
|
|
|
53 |
BUILDER_CONFIGS = [
|
54 |
+
datasets.BuilderConfig(name="TEST", version=VERSION, description="winogavil dataset"),
|
|
|
55 |
]
|
56 |
|
|
|
57 |
print('winogavil.py BUILDER')
|
58 |
|
59 |
def _info(self):
|
|
|
103 |
name=datasets.Split.TEST,
|
104 |
# These kwargs will be passed to _generate_examples
|
105 |
gen_kwargs={
|
106 |
+
"filepath": os.path.join(data_dir, "winogavil_dataset.csv"),
|
107 |
+
"split": "test",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
},
|
109 |
)
|
110 |
]
|