diff --git a/docling_core/types/doc/labels.py b/docling_core/types/doc/labels.py index 56d6398e..08c1f7c4 100644 --- a/docling_core/types/doc/labels.py +++ b/docling_core/types/doc/labels.py @@ -29,6 +29,10 @@ class DocItemLabel(str, Enum): PARAGRAPH = "paragraph" REFERENCE = "reference" + def __str__(self): + """Get string value.""" + return str(self.value) + @staticmethod def get_color(label: "DocItemLabel") -> Tuple[int, int, int]: """Return the RGB color associated with a given label."""