File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ class Wikipedia(tfds.core.BeamBasedBuilder):
116
116
BUILDER_CONFIGS = [
117
117
WikipediaConfig ( # pylint:disable=g-complex-comprehension
118
118
version = tfds .core .Version (
119
- "0.0.3 " , experiments = {tfds .core .Experiment .S3 : False }),
119
+ "0.0.4 " , experiments = {tfds .core .Experiment .S3 : False }),
120
120
language = lang ,
121
121
date = "20190301" ,
122
122
) for lang in WIKIPEDIA_LANGUAGES
@@ -224,6 +224,10 @@ def _clean_content(inputs):
224
224
logging .error ("mwparserfromhell ParseError: %s" , e )
225
225
return
226
226
227
+ if not text :
228
+ beam .metrics .Metrics .counter (language , "empty-clean-examples" ).inc ()
229
+ return
230
+
227
231
beam .metrics .Metrics .counter (language , "cleaned-examples" ).inc ()
228
232
229
233
yield {
You can’t perform that action at this time.
0 commit comments