Skip to content

Commit

Permalink
feat: Add group labels for form and key-value areas (#110)
Browse files Browse the repository at this point in the history
Add group labels for form and key-value

Signed-off-by: Christoph Auer <[email protected]>
  • Loading branch information
cau-git authored Dec 16, 2024
1 parent 3f631f0 commit aeaf89d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docling_core/types/doc/labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class GroupLabel(str, Enum):
SECTION = "section"
SHEET = "sheet"
SLIDE = "slide"
FORM_AREA = "form_area"
KEY_VALUE_AREA = "key_value_area"

def __str__(self):
"""Get string value."""
Expand Down
4 changes: 3 additions & 1 deletion docs/DoclingDocument.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@
"chapter",
"section",
"sheet",
"slide"
"slide",
"form_area",
"key_value_area"
],
"title": "GroupLabel",
"type": "string"
Expand Down

0 comments on commit aeaf89d

Please sign in to comment.