MotzWanted
commited on
Commit
•
9068569
1
Parent(s):
119b02b
Update medwiki.py
Browse files- medwiki.py +1 -1
medwiki.py
CHANGED
@@ -118,4 +118,4 @@ class MedWikipediaCorpusGenerator(datasets.GeneratorBasedBuilder):
|
|
118 |
# the first line is the title
|
119 |
title = f.readline()
|
120 |
text = f.read()
|
121 |
-
yield i, {"document.text":
|
|
|
118 |
# the first line is the title
|
119 |
title = f.readline()
|
120 |
text = f.read()
|
121 |
+
yield i, {"document.text": text, "document.idx": i, "document.title": title}
|