Peter Staar
0c21580c10
fix for the Docs
...
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
2025-09-24 12:42:56 +02:00
Peter Staar
f2e28db2a0
reset the docs/DoclingDocument.json
...
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
2025-09-24 11:36:19 +02:00
Peter Staar
830ba5c3f4
refactord the code
...
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
2025-09-23 15:37:44 +02:00
Maxim Lysak and Maksym Lysak
b13267f18b
feat: Introduction of fillable TableCell ( #384 )
...
* New properties for TableCell, corner_header and fillable
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com >
* Updated docs
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com >
* bumped docling document version to 1.7.0
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com >
---------
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com >
Co-authored-by: Maksym Lysak <mly@zurich.ibm.com >
2025-09-09 15:48:42 +02:00
Panos Vagenas
1d04154378
feat: add rich table cells ( #368 )
...
* feat: add rich table cells
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* propagate cell text resolution, cover row deletions
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* add doctags, fix referential integrity, expand tests, reenable mypy
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* bump DoclingDocument version
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* simplify / remove serialize_cell
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* update rich table cell refs in doc indexing
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* update notebook
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* expose new classes in `docling_core.types.doc`
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
---------
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
2025-08-27 10:07:47 +02:00
eb2538eb3a
feat: added different content-layers ( #345 )
...
* feat: added different content-layers
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* reformatted code
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* renamed concealed to invisible
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* fixed docs
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* Update docling_core/types/doc/document.py
Co-authored-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com >
Signed-off-by: Christoph Auer <60343111+cau-git@users.noreply.github.com >
* Update docs/DoclingDocument.json
Co-authored-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com >
Signed-off-by: Christoph Auer <60343111+cau-git@users.noreply.github.com >
---------
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
Signed-off-by: Christoph Auer <60343111+cau-git@users.noreply.github.com >
Co-authored-by: Christoph Auer <60343111+cau-git@users.noreply.github.com >
Co-authored-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com >
2025-07-02 17:28:53 +02:00
Panos Vagenas
14a4fdee87
feat: remodel lists, add MD & HTML ser. params, enable unset marker ( #339 )
...
* feat: remodel lists
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* prepare test document separate markers
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* add MD/HTML serializer options, expand test data
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* create list groups where not in place
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* add auto-increment logic
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* restore UnorderedList as deprecated alias (for backwards compatibility)
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* enable unset marker case
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* make ordered markers able to be "unset" (empty) too
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* rename default marker mode to auto
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
---------
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
2025-06-27 14:52:25 +02:00
Christoph Auer and Panos Vagenas
aa430d3776
feat: New labels for CVAT annotation ( #314 )
...
* New labels and utility for CVAT annotation
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
* Add EMPTY_VALUE to TextItem
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
* Small fixes
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
* align usage of content layer param (#326 )
* align usage of content layer param
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* parametrize content layers in visualizers
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
---------
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
---------
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
Signed-off-by: Christoph Auer <60343111+cau-git@users.noreply.github.com >
Co-authored-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com >
2025-06-11 19:25:13 +02:00
Panos Vagenas
ae961299a5
feat: add subscript & superscript formatting ( #319 )
...
* feat: add subscript & superscript formatting
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* switch to enum
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
---------
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
2025-06-06 09:01:32 +02:00
Panos Vagenas
d8a5256b2c
feat: add table annotations ( #304 )
...
* feat: add table annotations
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* refactor annotation types
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* expand to HTML
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* introduce annotation serializer
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* Update dummy_doc.yaml
Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com >
---------
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com >
2025-06-05 15:38:46 +02:00
Cesar Berrospi Ramis
4a174b5679
chore: fix deprecation warnings ( #303 )
...
* chore: fix deprecation warnings
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com >
* chore: disregard deprecated captions from hierarchical chunker in hybrid chunker
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com >
* chore: update poetry lock file
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com >
---------
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com >
2025-05-26 15:58:08 +02:00
Christoph Auer
aa957cf4b6
fix: Updates for labels and methods to support document GT annotation ( #293 )
...
Update labels and get_color
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
2025-05-14 14:35:17 +02:00
Peter W. J. Staar
2f0f12160b
feat: adding the label picture_group ( #283 )
...
* feat: adding the label picture_group
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* renamed group to area
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* reformatted the code
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* reformatted the docs
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
---------
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
2025-05-06 09:43:35 +02:00
Maxim Lysak and Maksym Lysak
e9259a5f87
feat: Support of DocTags charts (serialization and deserialization) ( #229 )
...
* Doctags charts deserialization into Docling Document, added PictureTabularChartData
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com >
* Correction for chart label mapping
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com >
* simplified label mapping
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com >
* Improved docummentation comment
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com >
* Added stacked_bar_chart to labels and tokens, as well as adjusted doctags_load
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com >
* doctags serializer for charts
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com >
* - Fixed DocTags table deserialization
- Updated tests
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com >
* cleaning
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com >
* Allowing DocItemLabel.CHART as a label for PictureItem
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com >
---------
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com >
Co-authored-by: Maksym Lysak <mly@zurich.ibm.com >
2025-04-07 12:27:48 +02:00
Panos Vagenas
a7cdc87411
feat: add serializers, text formatting, update Markdown export ( #182 )
...
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
2025-03-13 17:54:32 +01:00
Panos Vagenas
2abaf9b537
feat: add inline groups, revamp Markdown export incl. list groups ( #156 )
...
* feat: add inline groups, update markdown export
Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com >
* rename parameter for clarity
Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com >
* drop redundant `traverse_inline`, use only `visited`
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* update API usage after rebase
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* minor refactor
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* extend nesting logic to list groups
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* (MD export) add inline formulas, placeholders for `KeyValueItem`, `FormItem`
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* include 3rd-level list item in test
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* update test file with more recent conversion result
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
* update list construction pattern so that sublists are added to actual ListItems
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
---------
Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com >
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com >
2025-02-25 09:48:10 +01:00
d622800750
feat: Introduce Key-Value and Forms items ( #158 )
...
* Draft KeyValueItem content
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
* added add_key_value_item method
Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch >
* add KeyValueLink
Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch >
* update an add_key_value_item argument
Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch >
* remove KeyOrValueCellType and KeyValueLinkType
Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch >
* update tests for KeyValueItem
Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch >
* add union method to create bbox that covers all the given bboxes
Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch >
* added the , and rewrote it to make it more general with a GraphItem, as well as having cell- and link-labels
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* updated the code due to MyPy and reformatted
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* updated the reference docs with form-key
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* updated image
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* removed the circle
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* fixed the figure, testing now ...
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* added square in image
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* removed square in image
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* tests should go through
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* update poetry.lock versions
Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch >
* fix import issue
Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch >
* add validator for links in GraphData
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* added field_validator
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* rename add_key_values and add_form
Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch >
* rename union to enclosingbbox
Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch >
---------
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch >
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
Co-authored-by: Christoph Auer <cau@zurich.ibm.com >
Co-authored-by: Peter Staar <taa@zurich.ibm.com >
2025-02-19 09:50:45 +01:00
Christoph Auer
7267c3f571
fix: Fix inheritance of CodeItem for backward compatibility ( #162 )
...
* fix: Fix inheritance of CodeItem for backward compatibility
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
* Update docs
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
---------
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
2025-02-14 17:48:34 +01:00
Peter W. J. Staar and Michele Dolfi
916323fb55
feat: Redefine CodeItem as floating object with captions ( #160 )
...
* updated the CodeItem with captions
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* use FloatItem and add captions to add_code interface
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com >
---------
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com >
Co-authored-by: Michele Dolfi <dol@zurich.ibm.com >
2025-02-14 11:34:40 +01:00
Christoph Auer and Panos Vagenas
786f0c6833
feat: Add ContentLayer attribute to designate items to body or furniture ( #148 )
...
* feat: Add ContentLayer attribute to designate items to body or furniture
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
* introduce safer data gen mechanism, update chunking test data
Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com >
* Do not make test rely on order in yaml
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
* chore: format fixes
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
* fix: legacy_to_docling_doc must use content_layer
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
* Add content_layer in iterate_items
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
* Bump format version, add model_validator for old page_header,page_footer in body
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
* fix: Change to before model_validator
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
* Update tests
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
* Address review comments
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
---------
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com >
Co-authored-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com >
2025-02-10 10:58:41 +01:00
c940aa5ca9
feat: Add CodeItem as pydantic type, update export methods and APIs ( #129 )
...
* added code item
* added code item
* added code item
Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com >
* added code item
Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com >
* added code item
Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com >
* added code item
Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com >
* added code item
Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com >
* add constraints to allow numpy > 2.1.0 on python3.13 and others
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com >
* Add CodeItem to ContentItem
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
* added CodeItem in ContentItem tagged union.
* added enum for programming languages
* removed double CodeItem in ContentItem Union
* fixed type of code_language in CodeItem class
* fixed sorting of programming languages, not sorted anymore by value of string but variable name
---------
Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com >
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com >
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
Co-authored-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com >
Co-authored-by: Michele Dolfi <dol@zurich.ibm.com >
Co-authored-by: Christoph Auer <cau@zurich.ibm.com >
2025-01-17 16:59:33 +01:00
Peter W. J. Staar
5101dd8845
feat: added the new label comment_section in the groups ( #114 )
...
* added the new label comment_section in the groups
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
* reformatted the code
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
---------
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
2024-12-17 14:23:18 +01:00
Christoph Auer
aeaf89de10
feat: Add group labels for form and key-value areas ( #110 )
...
Add group labels for form and key-value
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
2024-12-16 13:40:01 +01:00
Panos Vagenas
047a1960af
fix: improve doc item typing ( #105 )
...
Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com >
2024-12-13 12:51:53 +01:00
Cesar Berrospi Ramis
266e7fc603
build: set pydantic version to 2.10.3 ( #93 )
...
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com >
2024-12-04 14:26:22 +01:00
ef49fd3f34
feat: adding HTML export to DoclingDocument, adding export of images in png with links to Markdown & HTML ( #69 )
...
Signed-off-by: Peter Staar <taa@zurich.ibm.com >
Signed-off-by: Christoph Auer <cau@zurich.ibm.com >
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com >
Co-authored-by: Christoph Auer <cau@zurich.ibm.com >
Co-authored-by: Michele Dolfi <dol@zurich.ibm.com >
2024-11-27 05:27:23 +01:00
Matteo and Matteo-Omenetti
36b7bea53a
feat: added pydantic models to store charts data (pie, bar, stacked bar, line, scatter) ( #52 )
...
* added pydantic models to store charts data (pie, bar, line)
Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com >
* changed chart models hierarchy structure, added StackedBarChart class
Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com >
* added scatter chart and addresed Peter's comments
Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com >
* fixed names of classes
Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com >
---------
Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com >
Co-authored-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com >
2024-10-29 15:49:09 +01:00
Panos Vagenas
e12d6a70c3
fix: fix legacy doc ref ( #48 )
...
Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com >
2024-10-18 15:21:01 +02:00