dlwh commited on
Commit
6b2c980
1 Parent(s): b2a751e

i'm a dumb dumb

Browse files
Files changed (1) hide show
  1. eu_wikipedias.py +2 -2
eu_wikipedias.py CHANGED
@@ -117,5 +117,5 @@ class EuWikipedia(datasets.GeneratorBasedBuilder):
117
  def _generate_examples(self, date):
118
  # defer to olm/wikipedia
119
  for lang in eu_languages:
120
- for example in datasets.load_dataset("olm/wikipedia", language=lang, date=date):
121
- yield example
 
117
  def _generate_examples(self, date):
118
  # defer to olm/wikipedia
119
  for lang in eu_languages:
120
+ for example in datasets.load_dataset("olm/wikipedia", language=lang, date=date)[datasets.Split.TRAIN]:
121
+ yield f"{lang}-{example['id']}", example