We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eb9e85 commit 507d55eCopy full SHA for 507d55e
docling_eval/datamodels/dataset_record.py
@@ -274,9 +274,9 @@ def validate_record_dict(cls, data: dict):
274
img_buffer.seek(0)
275
data[gt_binary] = DocumentStream(name="image.png", stream=img_buffer)
276
277
- # Backward compatibility: ensure tags field exists for old datasets
+ # Backward compatibility: ensure tags field exists for old datasets and is not None
278
tags_alias = cls.get_field_alias("tags")
279
- if tags_alias not in data:
+ if tags_alias not in data or data[tags_alias] is None:
280
data[tags_alias] = []
281
282
return data
0 commit comments