Datasets:
Update
Browse files- ELRC-Medical-V2.py +6 -5
ELRC-Medical-V2.py
CHANGED
@@ -37,10 +37,11 @@ _LICENSE = """
|
|
37 |
This work is licensed under a <a rel="license" href="https://elrc-share.eu/static/metashare/licences/CC-BY-4.0.pdf">Attribution 4.0 International (CC BY 4.0) License</a>.
|
38 |
"""
|
39 |
|
40 |
-
_URLS = {
|
41 |
-
|
42 |
-
}
|
43 |
|
|
|
44 |
# _URL = "https://raw.githubusercontent.com/qanastek/ELRC-Medical-V2/main/csv_corpus/"
|
45 |
|
46 |
_DESCRIPTION = "No description"
|
@@ -72,13 +73,13 @@ class ELRC_Medical_V2(datasets.GeneratorBasedBuilder):
|
|
72 |
def _split_generators(self, dl_manager):
|
73 |
|
74 |
# Download the CSV
|
75 |
-
data_dir = dl_manager.download(
|
76 |
|
77 |
return [
|
78 |
datasets.SplitGenerator(
|
79 |
name=datasets.Split.TRAIN,
|
80 |
gen_kwargs={
|
81 |
-
"filepath": data_dir
|
82 |
"split": "train",
|
83 |
}
|
84 |
),
|
|
|
37 |
This work is licensed under a <a rel="license" href="https://elrc-share.eu/static/metashare/licences/CC-BY-4.0.pdf">Attribution 4.0 International (CC BY 4.0) License</a>.
|
38 |
"""
|
39 |
|
40 |
+
# _URLS = {
|
41 |
+
# lang : "https://huggingface.co/datasets/qanastek/ELRC-Medical-V2/raw/main/csv/" + lang + ".csv" for lang in _LANGUAGE_PAIRS
|
42 |
+
# }
|
43 |
|
44 |
+
_URL = "https://raw.githubusercontent.com/qanastek/ELRC-Medical-V2/main/csv_corpus/"
|
45 |
# _URL = "https://raw.githubusercontent.com/qanastek/ELRC-Medical-V2/main/csv_corpus/"
|
46 |
|
47 |
_DESCRIPTION = "No description"
|
|
|
73 |
def _split_generators(self, dl_manager):
|
74 |
|
75 |
# Download the CSV
|
76 |
+
data_dir = dl_manager.download(_URL)
|
77 |
|
78 |
return [
|
79 |
datasets.SplitGenerator(
|
80 |
name=datasets.Split.TRAIN,
|
81 |
gen_kwargs={
|
82 |
+
"filepath": data_dir + self.config.name + ".csv",
|
83 |
"split": "train",
|
84 |
}
|
85 |
),
|