Update medical_wikipedia.py
Browse files- medical_wikipedia.py +1 -1
medical_wikipedia.py
CHANGED
@@ -71,7 +71,7 @@ class MedWikiDataset(datasets.GeneratorBasedBuilder):
|
|
71 |
urls = _URLS[self.config.name]
|
72 |
dataset = datasets.load_dataset(urls, "en", trust_remote_code=True, cache_dir="/Users/jcorbeil/Documents/datasets/TEMP")
|
73 |
path = dl_manager.download_and_extract("https://huggingface.co/datasets/jpcorb20/medical_wikipedia/resolve/main/med_topics.csv")
|
74 |
-
df = pd.read_csv(path
|
75 |
med_wiki_ids = set(df["wiki_id"].values.tolist())
|
76 |
return [
|
77 |
datasets.SplitGenerator(
|
|
|
71 |
urls = _URLS[self.config.name]
|
72 |
dataset = datasets.load_dataset(urls, "en", trust_remote_code=True, cache_dir="/Users/jcorbeil/Documents/datasets/TEMP")
|
73 |
path = dl_manager.download_and_extract("https://huggingface.co/datasets/jpcorb20/medical_wikipedia/resolve/main/med_topics.csv")
|
74 |
+
df = pd.read_csv(path)
|
75 |
med_wiki_ids = set(df["wiki_id"].values.tolist())
|
76 |
return [
|
77 |
datasets.SplitGenerator(
|