Update goodwiki_long_toy.py
Browse files- goodwiki_long_toy.py +1 -3
goodwiki_long_toy.py
CHANGED
@@ -100,8 +100,6 @@ class GoodWikiLongToyDataset(datasets.GeneratorBasedBuilder):
|
|
100 |
with open(path, encoding="utf-8") as data:
|
101 |
for article_data in data:
|
102 |
article = json.loads(article_data)
|
103 |
-
article["
|
104 |
-
article["text"] = "# " + article["title"] + "\n\n" + article.pop("markdown")
|
105 |
-
article["url"] = None
|
106 |
yield key, article
|
107 |
key += 1
|
|
|
100 |
with open(path, encoding="utf-8") as data:
|
101 |
for article_data in data:
|
102 |
article = json.loads(article_data)
|
103 |
+
article["text"] = "# " + article["title"] + "\n\n" + article.pop("text")
|
|
|
|
|
104 |
yield key, article
|
105 |
key += 1
|