Skip to content

Commit 078cd61

Browse files
feat: Dev/add labels for pictures-classes (#127)
* added the new label comment_section in the groups Signed-off-by: Peter Staar <[email protected]> * reformatted the code Signed-off-by: Peter Staar <[email protected]> * added new labels Signed-off-by: Peter Staar <[email protected]> * reformatted Signed-off-by: Peter Staar <[email protected]> * picture-label synced with current classification model Signed-off-by: Peter Staar <[email protected]> * reformatted Signed-off-by: Peter Staar <[email protected]> --------- Signed-off-by: Peter Staar <[email protected]>
1 parent b950fa0 commit 078cd61

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

docling_core/types/doc/labels.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,52 @@ def __str__(self):
8181
return str(self.value)
8282

8383

84+
class PictureClassificationLabel(str, Enum):
85+
"""PictureClassificationLabel."""
86+
87+
OTHER = "other"
88+
89+
# If more than one picture is grouped together, it
90+
# is generally not possible to assign a label
91+
PICTURE_GROUP = "picture_group"
92+
93+
# General
94+
PIE_CHART = "pie_chart"
95+
BAR_CHART = "bar_chart"
96+
LINE_CHART = "line_chart"
97+
FLOW_CHART = "flow_chart"
98+
SCATTER_CHART = "scatter_chart"
99+
HEATMAP = "heatmap"
100+
REMOTE_SENSING = "remote_sensing"
101+
102+
NATURAL_IMAGE = "natural_image"
103+
104+
# Chemistry
105+
MOLECULAR_STRUCTURE = "chemistry_molecular_structure"
106+
MARKUSH_STRUCTURE = "chemistry_markush_structure"
107+
108+
# Company
109+
ICON = "icon"
110+
LOGO = "logo"
111+
SIGNATURE = "signature"
112+
STAMP = "stamp"
113+
QR_CODE = "qr_code"
114+
BAR_CODE = "bat_code"
115+
SCREENSHOT = "screenshot"
116+
117+
# Geology/Geography
118+
GEOGRAPHIC_MAP = "map"
119+
STRATIGRAPHIC_CHART = "stratigraphic_chart"
120+
121+
# Engineering
122+
CAD_DRAWING = "cad_drawing"
123+
ELECTRICAL_DIAGRAM = "electrical_diagram"
124+
125+
def __str__(self):
126+
"""Get string value."""
127+
return str(self.value)
128+
129+
84130
class TableCellLabel(str, Enum):
85131
"""TableCellLabel."""
86132

0 commit comments

Comments
 (0)