Skip to content

Commit 0fd7895

Browse files
committed
Update deps, reproduce tests
Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
1 parent 606104a commit 0fd7895

File tree

43 files changed

+1013
-892
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1013
-892
lines changed

docling_cvat_tools/cvat_tools/cvat_to_docling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ def _process_element_linear(
12281228
or element_group_id == self._active_list_group_id
12291229
):
12301230
active_list_item = self._get_active_list_item()
1231-
target_item = active_list_item
1231+
target_item: Optional[NodeItem] = active_list_item
12321232
if self.list_manager.level_stack:
12331233
current_max_level = max(self.list_manager.level_stack)
12341234
has_future_same_level = self._has_future_list_item_at_level(
@@ -1258,7 +1258,7 @@ def _process_element_linear(
12581258
if group_info:
12591259
path_id, element_ids = group_info
12601260
group = self._create_group_on_demand(path_id, element_ids, parent_item)
1261-
item_parent = group
1261+
item_parent: Optional[NodeItem] = group
12621262
else:
12631263
item_parent = parent_item
12641264

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ dependencies = [
3737
"cvat-sdk>=2.40.0",
3838
'ocrmac>=1.0.0; sys_platform == "darwin" and platform_machine == "arm64"',
3939
"xlsxwriter>=3.1.0",
40+
"docling-parse>=4.7.2",
4041
]
4142

4243
[project.urls]

tests/cvat_to_docling/fixtures/002a_table_order/expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"schema_name": "DoclingDocument",
3-
"version": "1.8.0",
3+
"version": "1.9.0",
44
"name": "input",
55
"origin": null,
66
"furniture": {

tests/cvat_to_docling/fixtures/002b_table_order/expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"schema_name": "DoclingDocument",
3-
"version": "1.8.0",
3+
"version": "1.9.0",
44
"name": "input",
55
"origin": null,
66
"furniture": {

tests/cvat_to_docling/fixtures/003_docindex_notable_children/expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"schema_name": "DoclingDocument",
3-
"version": "1.8.0",
3+
"version": "1.9.0",
44
"name": "input",
55
"origin": null,
66
"furniture": {

tests/cvat_to_docling/fixtures/007_rotation_test/expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"schema_name": "DoclingDocument",
3-
"version": "1.8.0",
3+
"version": "1.9.0",
44
"name": "input",
55
"origin": null,
66
"furniture": {

tests/cvat_to_docling/fixtures/008_kvp_in_picture_legend/expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"schema_name": "DoclingDocument",
3-
"version": "1.8.0",
3+
"version": "1.9.0",
44
"name": "input",
55
"origin": null,
66
"furniture": {

tests/cvat_to_docling/fixtures/009_rotation_on_table/expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"schema_name": "DoclingDocument",
3-
"version": "1.8.0",
3+
"version": "1.9.0",
44
"name": "input",
55
"origin": null,
66
"furniture": {

tests/cvat_to_docling/fixtures/010_caption_assignment/expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"schema_name": "DoclingDocument",
3-
"version": "1.8.0",
3+
"version": "1.9.0",
44
"name": "input",
55
"origin": null,
66
"furniture": {

tests/cvat_to_docling/fixtures/011a_paragraph_continuation_with_picture_between/expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"schema_name": "DoclingDocument",
3-
"version": "1.8.0",
3+
"version": "1.9.0",
44
"name": "input",
55
"origin": null,
66
"furniture": {

0 commit comments

Comments
 (0)