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 5c2e0de commit a52bb88Copy full SHA for a52bb88
docling_core/types/doc/labels.py
@@ -29,6 +29,10 @@ class DocItemLabel(str, Enum):
29
PARAGRAPH = "paragraph"
30
REFERENCE = "reference"
31
32
+ def __str__(self):
33
+ """Get string value."""
34
+ return str(self.value)
35
+
36
@staticmethod
37
def get_color(label: "DocItemLabel") -> Tuple[int, int, int]:
38
"""Return the RGB color associated with a given label."""
0 commit comments