Skip none
Browse files- 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 |
-
|
|
|
|
|
|
|
| 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):
|