mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-09 13:18:24 +00:00
* feat: Switch default layout model to DOCLING_LAYOUT_HERON. Update the unit test data. Signed-off-by: Nikos Livathinos <nli@zurich.ibm.com> * Use default layout model in model_downloader default args Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * Use default layout model in model_downloader default args Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * Update docling-models tag for TableFormer Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * Update test GT Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * Update test GT (from linux CPU) Signed-off-by: Ubuntu <ubuntu@ip-172-31-30-253.eu-central-1.compute.internal> * fix: Ensure that the visualisations happen on copies of the page image Signed-off-by: Nikos Livathinos <nli@zurich.ibm.com> * chore: Pinpoint docling-ibm-models to the fix branch for the ReadingOrderPredictor Signed-off-by: Nikos Livathinos <nli@zurich.ibm.com> * chore: Update uv.lock Signed-off-by: Nikos Livathinos <nli@zurich.ibm.com> * chore: Update tests GT to match the Heron layout model and the improved reading order model in Linux Signed-off-by: Nikos Livathinos <nli@zurich.ibm.com> * fix: Introduce the verify_doctags optional parameter in conversion tests to control if a doctags comparison should take place. Skip doctags comparisons for certain tests. Signed-off-by: Nikos Livathinos <nli@zurich.ibm.com> * chore: Generate tests GT on Mac Signed-off-by: Nikos Livathinos <nli@zurich.ibm.com> * chore: Remove the pinning of the docling-ibm-models and use the release 3.9.1 Signed-off-by: Nikos Livathinos <nli@zurich.ibm.com> --------- Signed-off-by: Nikos Livathinos <nli@zurich.ibm.com> Signed-off-by: Christoph Auer <cau@zurich.ibm.com> Signed-off-by: Ubuntu <ubuntu@ip-172-31-30-253.eu-central-1.compute.internal> Co-authored-by: Christoph Auer <cau@zurich.ibm.com> Co-authored-by: Ubuntu <ubuntu@ip-172-31-30-253.eu-central-1.compute.internal>
311 lines
9.0 KiB
JSON
Vendored
311 lines
9.0 KiB
JSON
Vendored
[
|
|
{
|
|
"page_no": 0,
|
|
"size": {
|
|
"width": 595.2,
|
|
"height": 841.92
|
|
},
|
|
"predictions": {
|
|
"layout": {
|
|
"clusters": [
|
|
{
|
|
"id": 0,
|
|
"label": "text",
|
|
"bbox": {
|
|
"l": 69.68,
|
|
"t": 77.0,
|
|
"r": 504.87,
|
|
"b": 152.91,
|
|
"coord_origin": "TOPLEFT"
|
|
},
|
|
"confidence": 0.862,
|
|
"cells": [
|
|
{
|
|
"index": 0,
|
|
"rgba": {
|
|
"r": 0,
|
|
"g": 0,
|
|
"b": 0,
|
|
"a": 255
|
|
},
|
|
"rect": {
|
|
"r_x0": 73.35,
|
|
"r_y0": 98.0,
|
|
"r_x1": 503.65,
|
|
"r_y1": 98.0,
|
|
"r_x2": 503.65,
|
|
"r_y2": 77.0,
|
|
"r_x3": 73.35,
|
|
"r_y3": 77.0,
|
|
"coord_origin": "TOPLEFT"
|
|
},
|
|
"text": "Docling bundles PDF document conversion to",
|
|
"orig": "Docling bundles PDF document conversion to",
|
|
"text_direction": "left_to_right",
|
|
"confidence": 1.0,
|
|
"from_ocr": true
|
|
},
|
|
{
|
|
"index": 1,
|
|
"rgba": {
|
|
"r": 0,
|
|
"g": 0,
|
|
"b": 0,
|
|
"a": 255
|
|
},
|
|
"rect": {
|
|
"r_x0": 69.68,
|
|
"r_y0": 124.83,
|
|
"r_x1": 504.87,
|
|
"r_y1": 124.83,
|
|
"r_x2": 504.87,
|
|
"r_y2": 104.0,
|
|
"r_x3": 69.68,
|
|
"r_y3": 104.0,
|
|
"coord_origin": "TOPLEFT"
|
|
},
|
|
"text": "JSON and Markdown in an easy self contained",
|
|
"orig": "JSON and Markdown in an easy self contained",
|
|
"text_direction": "left_to_right",
|
|
"confidence": 1.0,
|
|
"from_ocr": true
|
|
},
|
|
{
|
|
"index": 2,
|
|
"rgba": {
|
|
"r": 0,
|
|
"g": 0,
|
|
"b": 0,
|
|
"a": 255
|
|
},
|
|
"rect": {
|
|
"r_x0": 71.84,
|
|
"r_y0": 152.91,
|
|
"r_x1": 153.09,
|
|
"r_y1": 152.91,
|
|
"r_x2": 153.09,
|
|
"r_y2": 129.8,
|
|
"r_x3": 71.84,
|
|
"r_y3": 129.8,
|
|
"coord_origin": "TOPLEFT"
|
|
},
|
|
"text": "package",
|
|
"orig": "package",
|
|
"text_direction": "left_to_right",
|
|
"confidence": 1.0,
|
|
"from_ocr": true
|
|
}
|
|
],
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
"tablestructure": {
|
|
"table_map": {}
|
|
},
|
|
"figures_classification": null,
|
|
"equations_prediction": null,
|
|
"vlm_response": null
|
|
},
|
|
"assembled": {
|
|
"elements": [
|
|
{
|
|
"label": "text",
|
|
"id": 0,
|
|
"page_no": 0,
|
|
"cluster": {
|
|
"id": 0,
|
|
"label": "text",
|
|
"bbox": {
|
|
"l": 69.68,
|
|
"t": 77.0,
|
|
"r": 504.87,
|
|
"b": 152.91,
|
|
"coord_origin": "TOPLEFT"
|
|
},
|
|
"confidence": 0.862,
|
|
"cells": [
|
|
{
|
|
"index": 0,
|
|
"rgba": {
|
|
"r": 0,
|
|
"g": 0,
|
|
"b": 0,
|
|
"a": 255
|
|
},
|
|
"rect": {
|
|
"r_x0": 73.35,
|
|
"r_y0": 98.0,
|
|
"r_x1": 503.65,
|
|
"r_y1": 98.0,
|
|
"r_x2": 503.65,
|
|
"r_y2": 77.0,
|
|
"r_x3": 73.35,
|
|
"r_y3": 77.0,
|
|
"coord_origin": "TOPLEFT"
|
|
},
|
|
"text": "Docling bundles PDF document conversion to",
|
|
"orig": "Docling bundles PDF document conversion to",
|
|
"text_direction": "left_to_right",
|
|
"confidence": 1.0,
|
|
"from_ocr": true
|
|
},
|
|
{
|
|
"index": 1,
|
|
"rgba": {
|
|
"r": 0,
|
|
"g": 0,
|
|
"b": 0,
|
|
"a": 255
|
|
},
|
|
"rect": {
|
|
"r_x0": 69.68,
|
|
"r_y0": 124.83,
|
|
"r_x1": 504.87,
|
|
"r_y1": 124.83,
|
|
"r_x2": 504.87,
|
|
"r_y2": 104.0,
|
|
"r_x3": 69.68,
|
|
"r_y3": 104.0,
|
|
"coord_origin": "TOPLEFT"
|
|
},
|
|
"text": "JSON and Markdown in an easy self contained",
|
|
"orig": "JSON and Markdown in an easy self contained",
|
|
"text_direction": "left_to_right",
|
|
"confidence": 1.0,
|
|
"from_ocr": true
|
|
},
|
|
{
|
|
"index": 2,
|
|
"rgba": {
|
|
"r": 0,
|
|
"g": 0,
|
|
"b": 0,
|
|
"a": 255
|
|
},
|
|
"rect": {
|
|
"r_x0": 71.84,
|
|
"r_y0": 152.91,
|
|
"r_x1": 153.09,
|
|
"r_y1": 152.91,
|
|
"r_x2": 153.09,
|
|
"r_y2": 129.8,
|
|
"r_x3": 71.84,
|
|
"r_y3": 129.8,
|
|
"coord_origin": "TOPLEFT"
|
|
},
|
|
"text": "package",
|
|
"orig": "package",
|
|
"text_direction": "left_to_right",
|
|
"confidence": 1.0,
|
|
"from_ocr": true
|
|
}
|
|
],
|
|
"children": []
|
|
},
|
|
"text": "Docling bundles PDF document conversion to JSON and Markdown in an easy self contained package"
|
|
}
|
|
],
|
|
"body": [
|
|
{
|
|
"label": "text",
|
|
"id": 0,
|
|
"page_no": 0,
|
|
"cluster": {
|
|
"id": 0,
|
|
"label": "text",
|
|
"bbox": {
|
|
"l": 69.68,
|
|
"t": 77.0,
|
|
"r": 504.87,
|
|
"b": 152.91,
|
|
"coord_origin": "TOPLEFT"
|
|
},
|
|
"confidence": 0.862,
|
|
"cells": [
|
|
{
|
|
"index": 0,
|
|
"rgba": {
|
|
"r": 0,
|
|
"g": 0,
|
|
"b": 0,
|
|
"a": 255
|
|
},
|
|
"rect": {
|
|
"r_x0": 73.35,
|
|
"r_y0": 98.0,
|
|
"r_x1": 503.65,
|
|
"r_y1": 98.0,
|
|
"r_x2": 503.65,
|
|
"r_y2": 77.0,
|
|
"r_x3": 73.35,
|
|
"r_y3": 77.0,
|
|
"coord_origin": "TOPLEFT"
|
|
},
|
|
"text": "Docling bundles PDF document conversion to",
|
|
"orig": "Docling bundles PDF document conversion to",
|
|
"text_direction": "left_to_right",
|
|
"confidence": 1.0,
|
|
"from_ocr": true
|
|
},
|
|
{
|
|
"index": 1,
|
|
"rgba": {
|
|
"r": 0,
|
|
"g": 0,
|
|
"b": 0,
|
|
"a": 255
|
|
},
|
|
"rect": {
|
|
"r_x0": 69.68,
|
|
"r_y0": 124.83,
|
|
"r_x1": 504.87,
|
|
"r_y1": 124.83,
|
|
"r_x2": 504.87,
|
|
"r_y2": 104.0,
|
|
"r_x3": 69.68,
|
|
"r_y3": 104.0,
|
|
"coord_origin": "TOPLEFT"
|
|
},
|
|
"text": "JSON and Markdown in an easy self contained",
|
|
"orig": "JSON and Markdown in an easy self contained",
|
|
"text_direction": "left_to_right",
|
|
"confidence": 1.0,
|
|
"from_ocr": true
|
|
},
|
|
{
|
|
"index": 2,
|
|
"rgba": {
|
|
"r": 0,
|
|
"g": 0,
|
|
"b": 0,
|
|
"a": 255
|
|
},
|
|
"rect": {
|
|
"r_x0": 71.84,
|
|
"r_y0": 152.91,
|
|
"r_x1": 153.09,
|
|
"r_y1": 152.91,
|
|
"r_x2": 153.09,
|
|
"r_y2": 129.8,
|
|
"r_x3": 71.84,
|
|
"r_y3": 129.8,
|
|
"coord_origin": "TOPLEFT"
|
|
},
|
|
"text": "package",
|
|
"orig": "package",
|
|
"text_direction": "left_to_right",
|
|
"confidence": 1.0,
|
|
"from_ocr": true
|
|
}
|
|
],
|
|
"children": []
|
|
},
|
|
"text": "Docling bundles PDF document conversion to JSON and Markdown in an easy self contained package"
|
|
}
|
|
],
|
|
"headers": []
|
|
},
|
|
"parsed_page": null
|
|
}
|
|
] |