Skip to content

Commit ada4068

Browse files
maxmnemonicMaksym Lysak
andauthored
feat: New picture classes for doctags (#404)
* New picture classes Signed-off-by: Maksym Lysak <[email protected]> * Updated to reflect actual data Signed-off-by: Maksym Lysak <[email protected]> * updated, harmonized picture class names Signed-off-by: Maksym Lysak <[email protected]> * simplifying: pictogram is icon Signed-off-by: Maksym Lysak <[email protected]> --------- Signed-off-by: Maksym Lysak <[email protected]> Co-authored-by: Maksym Lysak <[email protected]>
1 parent 9fa02d0 commit ada4068

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docling_core/types/doc/tokens.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class _PictureClassificationToken(str, Enum):
5555
PICTURE_GROUP = "<picture_group>"
5656

5757
# General
58+
CHART = "<chart>"
5859
PIE_CHART = "<pie_chart>"
5960
BAR_CHART = "<bar_chart>"
6061
STACKED_BAR_CHART = "<stacked_bar_chart>"
@@ -63,8 +64,12 @@ class _PictureClassificationToken(str, Enum):
6364
SCATTER_CHART = "<scatter_chart>"
6465
HEATMAP = "<heatmap>"
6566
REMOTE_SENSING = "<remote_sensing>"
67+
INFOGRAPHIC = "<infographic>"
68+
DECORATION = "<decoration>"
69+
ILLUSTRATION = "<illustration>"
6670

6771
NATURAL_IMAGE = "<natural_image>"
72+
PERSON = "<person>"
6873

6974
# Chemistry
7075
MOLECULAR_STRUCTURE = "<chemistry_molecular_structure>"
@@ -78,6 +83,7 @@ class _PictureClassificationToken(str, Enum):
7883
QR_CODE = "<qr_code>"
7984
BAR_CODE = "<bar_code>"
8085
SCREENSHOT = "<screenshot>"
86+
UI_ELEMENT = "<ui_element>"
8187

8288
# Geology/Geography
8389
GEOGRAPHIC_MAP = "<map>"

0 commit comments

Comments
 (0)