Update UD_Spanish-AnCora.py
Browse files- UD_Spanish-AnCora.py +7 -7
UD_Spanish-AnCora.py
CHANGED
@@ -21,18 +21,18 @@ Universal Dependencies is a project that seeks to develop cross-linguistically c
|
|
21 |
"""
|
22 |
|
23 |
_NAMES = [
|
24 |
-
"
|
25 |
]
|
26 |
|
27 |
_DESCRIPTIONS = {
|
28 |
-
"
|
29 |
}
|
30 |
_PREFIX = "./"
|
31 |
_UD_DATASETS = {
|
32 |
-
"
|
33 |
-
"train": "
|
34 |
-
"dev": "
|
35 |
-
"test": "
|
36 |
},
|
37 |
}
|
38 |
|
@@ -107,7 +107,7 @@ class UniversalDependencies(datasets.GeneratorBasedBuilder):
|
|
107 |
def _split_generators(self, dl_manager):
|
108 |
"""Returns SplitGenerators."""
|
109 |
urls_to_download = {}
|
110 |
-
for split, address in _UD_DATASETS["
|
111 |
urls_to_download[split] = []
|
112 |
if isinstance(address, list):
|
113 |
for add in address:
|
|
|
21 |
"""
|
22 |
|
23 |
_NAMES = [
|
24 |
+
"es_ancora",
|
25 |
]
|
26 |
|
27 |
_DESCRIPTIONS = {
|
28 |
+
"es_ancora": "Spanish data from the AnCora corpus.",
|
29 |
}
|
30 |
_PREFIX = "./"
|
31 |
_UD_DATASETS = {
|
32 |
+
"es_ancora": {
|
33 |
+
"train": "es_ancora-ud-train.conllu",
|
34 |
+
"dev": "es_ancora-ud-dev.conllu",
|
35 |
+
"test": "es_ancora-ud-test.conllu",
|
36 |
},
|
37 |
}
|
38 |
|
|
|
107 |
def _split_generators(self, dl_manager):
|
108 |
"""Returns SplitGenerators."""
|
109 |
urls_to_download = {}
|
110 |
+
for split, address in _UD_DATASETS["es_ancora"].items():
|
111 |
urls_to_download[split] = []
|
112 |
if isinstance(address, list):
|
113 |
for add in address:
|