update file
Browse files- abricot.py +7 -5
abricot.py
CHANGED
|
@@ -31,7 +31,7 @@ _LICENSE = "CC BY 4.0"
|
|
| 31 |
|
| 32 |
|
| 33 |
_URLS = {
|
| 34 |
-
"abs": "https://github.com/aramelior/ABRICOT-ABstRactness-and-Inclusiveness-in-COntexT"
|
| 35 |
}
|
| 36 |
|
| 37 |
|
|
@@ -77,15 +77,17 @@ class abricot(datasets.GeneratorBasedBuilder):
|
|
| 77 |
def _split_generators(self, dl_manager):
|
| 78 |
|
| 79 |
urls = _URLS[self.config.name]
|
| 80 |
-
data_dir = dl_manager.extract(urls)
|
| 81 |
-
if self.config.name == "abs":
|
| 82 |
-
|
|
|
|
|
|
|
| 83 |
return [
|
| 84 |
datasets.SplitGenerator(
|
| 85 |
name=datasets.Split.VALIDATION,
|
| 86 |
# These kwargs will be passed to _generate_examples
|
| 87 |
gen_kwargs={
|
| 88 |
-
"filepath":
|
| 89 |
"split": "val",
|
| 90 |
},
|
| 91 |
),
|
|
|
|
| 31 |
|
| 32 |
|
| 33 |
_URLS = {
|
| 34 |
+
"abs": "https://github.com/aramelior/ABRICOT-ABstRactness-and-Inclusiveness-in-COntexT/blob/main/dataset_it.csv"
|
| 35 |
}
|
| 36 |
|
| 37 |
|
|
|
|
| 77 |
def _split_generators(self, dl_manager):
|
| 78 |
|
| 79 |
urls = _URLS[self.config.name]
|
| 80 |
+
# data_dir = dl_manager.extract(urls)
|
| 81 |
+
# if self.config.name == "abs":
|
| 82 |
+
# data_file = "dataset_it.csv"
|
| 83 |
+
data_file = dl_manager.download(urls)
|
| 84 |
+
print(data_file)
|
| 85 |
return [
|
| 86 |
datasets.SplitGenerator(
|
| 87 |
name=datasets.Split.VALIDATION,
|
| 88 |
# These kwargs will be passed to _generate_examples
|
| 89 |
gen_kwargs={
|
| 90 |
+
"filepath": data_file,
|
| 91 |
"split": "val",
|
| 92 |
},
|
| 93 |
),
|