diff --git a/unstructured/partition/common/common.py b/unstructured/partition/common/common.py index 468d356b44..7a1751b8e8 100644 --- a/unstructured/partition/common/common.py +++ b/unstructured/partition/common/common.py @@ -50,7 +50,7 @@ def normalize_layout_element( else: layout_dict = layout_element - text = layout_dict.get("text", "") + text = layout_dict.get("text") or "" # Both `coordinates` and `coordinate_system` must be present # in order to add coordinates metadata to the element. coordinates = layout_dict.get("coordinates") if coordinate_system else None