Update medical_qa_ru_data.py
Browse files- medical_qa_ru_data.py +11 -2
medical_qa_ru_data.py
CHANGED
@@ -45,8 +45,17 @@ class MedicalQARuData(datasets.GeneratorBasedBuilder):
|
|
45 |
)
|
46 |
|
47 |
def _split_generators(self, dl_manager):
|
48 |
-
|
49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
def _generate_examples(self, filepath):
|
52 |
"""Yields examples."""
|
|
|
45 |
)
|
46 |
|
47 |
def _split_generators(self, dl_manager):
|
48 |
+
urls_to_download = {
|
49 |
+
"train": "healthcare_facilities_reviews.jsonl"
|
50 |
+
}
|
51 |
+
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
52 |
+
|
53 |
+
return [
|
54 |
+
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]})
|
55 |
+
]
|
56 |
+
|
57 |
+
#data_file = dl_manager.download_and_extract(_URL)
|
58 |
+
#return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_file})]
|
59 |
|
60 |
def _generate_examples(self, filepath):
|
61 |
"""Yields examples."""
|