Update ukrainian-news.py
Browse files- ukrainian-news.py +1 -1
ukrainian-news.py
CHANGED
@@ -57,5 +57,5 @@ class UkrainianNews(datasets.GeneratorBasedBuilder):
|
|
57 |
for path in filepaths:
|
58 |
with open(path, encoding="utf-8") as f:
|
59 |
for news_str in f:
|
60 |
-
news = json.
|
61 |
yield news['id'], news
|
|
|
57 |
for path in filepaths:
|
58 |
with open(path, encoding="utf-8") as f:
|
59 |
for news_str in f:
|
60 |
+
news = json.loads(news_str)
|
61 |
yield news['id'], news
|