reyoung commited on
Commit
69bc7ba
·
1 Parent(s): d58a2e4
Files changed (1) hide show
  1. wikipedia.py +3 -1
wikipedia.py CHANGED
@@ -1031,7 +1031,9 @@ class Wikipedia(datasets.GeneratorBasedBuilder):
1031
  yield _clean_content(obj, language=language)
1032
 
1033
  for filepath in tqdm(filepaths):
1034
- yield from parse_and_clean(filepath)
 
 
1035
 
1036
 
1037
  def _parse_and_clean_wikicode(raw_content, parser, language):
 
1031
  yield _clean_content(obj, language=language)
1032
 
1033
  for filepath in tqdm(filepaths):
1034
+ for item in parse_and_clean(filepath):
1035
+ if item is not None:
1036
+ yield item
1037
 
1038
 
1039
  def _parse_and_clean_wikicode(raw_content, parser, language):