Harbor format: 14 coding_additions tasks (part 3)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +1 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/docitem_comments_field.out.yaml +54 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/docitem_comments_multiple.out.yaml +82 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_archive/load/two_pages.dclx +3 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_archive/load/two_pages.gt.json +0 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_archive/save/two_pages.json +0 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_ref/002a_table_order/input.json +0 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_ref/002a_table_order/input_kv_p1.png +3 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_ref/002a_table_order/output.dclg.xml +213 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_ref/002a_table_order/output.json +0 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_ref/002a_table_order/output_kv_p1.png +3 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_ref/002a_table_order/output_no_content.dclg.xml +173 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/document_index.gt.dclg.xml +26 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc.gt.tex +32 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc.yaml +217 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc.yaml.dt +4 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc.yaml.et +6 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc.yaml.html +181 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc.yaml.md +17 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc.yaml.min.dt +1 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc.yaml.vtt +1 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc_2.yaml +240 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc_2_prec.yaml +275 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc_mark_meta.md +17 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc_with_meta.gt.dclg.xml +55 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc_with_meta.gt.dt +4 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc_with_meta.yaml +255 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc_with_meta_2.yaml +255 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc_with_meta_modified.yaml +293 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_item_outside_field_region.gt.dclg.xml +8 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region.gt.md +3 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_flat_key_value.gt.dclg.xml +10 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv/deserialized.json +655 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv/input.json +647 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv/reserialized.dclg.xml +56 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv/serialized.dclg.xml +56 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv_invoice/deserialized.json +418 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv_invoice/input.json +436 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv_invoice/reserialized.dclg.xml +56 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv_invoice/serialized.dclg.xml +56 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv_migration/deserialized.json +326 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv_migration/input.json +326 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv_migration/reserialized.dclg.xml +34 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv_migration/serialized.dclg.xml +34 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_value_only.gt.dclg.xml +7 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/flattened.dclg.xml +75 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/flattened.json +936 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/group_with_metadata.yaml +128 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/group_with_metadata_allowed_meta_names.md +10 -0
- tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/group_with_metadata_blocked_meta_names.md +10 -0
.gitattributes
CHANGED
|
@@ -63,3 +63,4 @@ tasks/tasksmith-35d8641e8647/tests/source/docs/_static/social[[:space:]]card.afd
|
|
| 63 |
tasks/tasksmith-4ca6d2396445/tests/source/docs/_static/social[[:space:]]card.afdesign filter=lfs diff=lfs merge=lfs -text
|
| 64 |
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/concatenated.html filter=lfs diff=lfs merge=lfs -text
|
| 65 |
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/concatenated.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 63 |
tasks/tasksmith-4ca6d2396445/tests/source/docs/_static/social[[:space:]]card.afdesign filter=lfs diff=lfs merge=lfs -text
|
| 64 |
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/concatenated.html filter=lfs diff=lfs merge=lfs -text
|
| 65 |
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/concatenated.json filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_archive/load/two_pages.dclx filter=lfs diff=lfs merge=lfs -text
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/docitem_comments_field.out.yaml
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
body:
|
| 2 |
+
children:
|
| 3 |
+
- $ref: '#/texts/0'
|
| 4 |
+
- $ref: '#/texts/1'
|
| 5 |
+
- $ref: '#/texts/2'
|
| 6 |
+
content_layer: body
|
| 7 |
+
label: unspecified
|
| 8 |
+
name: _root_
|
| 9 |
+
self_ref: '#/body'
|
| 10 |
+
form_items: []
|
| 11 |
+
furniture:
|
| 12 |
+
children: []
|
| 13 |
+
content_layer: furniture
|
| 14 |
+
label: unspecified
|
| 15 |
+
name: _root_
|
| 16 |
+
self_ref: '#/furniture'
|
| 17 |
+
groups: []
|
| 18 |
+
key_value_items: []
|
| 19 |
+
name: test_comments
|
| 20 |
+
pages: {}
|
| 21 |
+
pictures: []
|
| 22 |
+
schema_name: DoclingDocument
|
| 23 |
+
tables: []
|
| 24 |
+
texts:
|
| 25 |
+
- children: []
|
| 26 |
+
content_layer: body
|
| 27 |
+
label: text
|
| 28 |
+
orig: Normal text without comment.
|
| 29 |
+
parent:
|
| 30 |
+
$ref: '#/body'
|
| 31 |
+
prov: []
|
| 32 |
+
self_ref: '#/texts/0'
|
| 33 |
+
text: Normal text without comment.
|
| 34 |
+
- children: []
|
| 35 |
+
comments:
|
| 36 |
+
- $ref: '#/texts/2'
|
| 37 |
+
content_layer: body
|
| 38 |
+
label: text
|
| 39 |
+
orig: This text has a comment attached.
|
| 40 |
+
parent:
|
| 41 |
+
$ref: '#/body'
|
| 42 |
+
prov: []
|
| 43 |
+
self_ref: '#/texts/1'
|
| 44 |
+
text: This text has a comment attached.
|
| 45 |
+
- children: []
|
| 46 |
+
content_layer: notes
|
| 47 |
+
label: text
|
| 48 |
+
orig: '[John Reviewer]: This is a reviewer comment.'
|
| 49 |
+
parent:
|
| 50 |
+
$ref: '#/body'
|
| 51 |
+
prov: []
|
| 52 |
+
self_ref: '#/texts/2'
|
| 53 |
+
text: '[John Reviewer]: This is a reviewer comment.'
|
| 54 |
+
version: 1.10.0
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/docitem_comments_multiple.out.yaml
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
body:
|
| 2 |
+
children:
|
| 3 |
+
- $ref: '#/texts/0'
|
| 4 |
+
- $ref: '#/texts/1'
|
| 5 |
+
- $ref: '#/texts/2'
|
| 6 |
+
- $ref: '#/texts/3'
|
| 7 |
+
- $ref: '#/texts/4'
|
| 8 |
+
content_layer: body
|
| 9 |
+
label: unspecified
|
| 10 |
+
name: _root_
|
| 11 |
+
self_ref: '#/body'
|
| 12 |
+
form_items: []
|
| 13 |
+
furniture:
|
| 14 |
+
children: []
|
| 15 |
+
content_layer: furniture
|
| 16 |
+
label: unspecified
|
| 17 |
+
name: _root_
|
| 18 |
+
self_ref: '#/furniture'
|
| 19 |
+
groups: []
|
| 20 |
+
key_value_items: []
|
| 21 |
+
name: test_multiple_comments
|
| 22 |
+
pages: {}
|
| 23 |
+
pictures: []
|
| 24 |
+
schema_name: DoclingDocument
|
| 25 |
+
tables: []
|
| 26 |
+
texts:
|
| 27 |
+
- children: []
|
| 28 |
+
comments:
|
| 29 |
+
- $ref: '#/texts/3'
|
| 30 |
+
content_layer: body
|
| 31 |
+
label: text
|
| 32 |
+
orig: Text 1.
|
| 33 |
+
parent:
|
| 34 |
+
$ref: '#/body'
|
| 35 |
+
prov: []
|
| 36 |
+
self_ref: '#/texts/0'
|
| 37 |
+
text: Text 1.
|
| 38 |
+
- children: []
|
| 39 |
+
comments:
|
| 40 |
+
- $ref: '#/texts/3'
|
| 41 |
+
- $ref: '#/texts/4'
|
| 42 |
+
range:
|
| 43 |
+
- 0
|
| 44 |
+
- 6
|
| 45 |
+
content_layer: body
|
| 46 |
+
label: text
|
| 47 |
+
orig: Text 2.
|
| 48 |
+
parent:
|
| 49 |
+
$ref: '#/body'
|
| 50 |
+
prov: []
|
| 51 |
+
self_ref: '#/texts/1'
|
| 52 |
+
text: Text 2.
|
| 53 |
+
- children: []
|
| 54 |
+
comments:
|
| 55 |
+
- $ref: '#/texts/4'
|
| 56 |
+
content_layer: body
|
| 57 |
+
label: text
|
| 58 |
+
orig: Text 3.
|
| 59 |
+
parent:
|
| 60 |
+
$ref: '#/body'
|
| 61 |
+
prov: []
|
| 62 |
+
self_ref: '#/texts/2'
|
| 63 |
+
text: Text 3.
|
| 64 |
+
- children: []
|
| 65 |
+
content_layer: notes
|
| 66 |
+
label: text
|
| 67 |
+
orig: '[Reviewer A]: This is a comment on texts 1 and 2.'
|
| 68 |
+
parent:
|
| 69 |
+
$ref: '#/body'
|
| 70 |
+
prov: []
|
| 71 |
+
self_ref: '#/texts/3'
|
| 72 |
+
text: '[Reviewer A]: This is a comment on texts 1 and 2.'
|
| 73 |
+
- children: []
|
| 74 |
+
content_layer: notes
|
| 75 |
+
label: text
|
| 76 |
+
orig: '[Reviewer B]: This is a comment on texts 2 (range [0,6)) and 3.'
|
| 77 |
+
parent:
|
| 78 |
+
$ref: '#/body'
|
| 79 |
+
prov: []
|
| 80 |
+
self_ref: '#/texts/4'
|
| 81 |
+
text: '[Reviewer B]: This is a comment on texts 2 (range [0,6)) and 3.'
|
| 82 |
+
version: 1.10.0
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_archive/load/two_pages.dclx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e5362331e591a0049ccf944ddd28062c43f54545ec7112be15cfc639e4f882f
|
| 3 |
+
size 927372
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_archive/load/two_pages.gt.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_archive/save/two_pages.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_ref/002a_table_order/input.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_ref/002a_table_order/input_kv_p1.png
ADDED
|
Git LFS Details
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_ref/002a_table_order/output.dclg.xml
ADDED
|
@@ -0,0 +1,213 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<doclang>
|
| 2 |
+
<text>
|
| 3 |
+
<layer value="furniture"/>
|
| 4 |
+
<location value="61"/>
|
| 5 |
+
<location value="24"/>
|
| 6 |
+
<location value="101"/>
|
| 7 |
+
<location value="29"/>
|
| 8 |
+
13040.19
|
| 9 |
+
</text>
|
| 10 |
+
<text>
|
| 11 |
+
<layer value="furniture"/>
|
| 12 |
+
<location value="245"/>
|
| 13 |
+
<location value="24"/>
|
| 14 |
+
<location value="267"/>
|
| 15 |
+
<location value="29"/>
|
| 16 |
+
- 16 -
|
| 17 |
+
</text>
|
| 18 |
+
<picture>
|
| 19 |
+
<label value="other"/>
|
| 20 |
+
<layer value="furniture"/>
|
| 21 |
+
<location value="432"/>
|
| 22 |
+
<location value="10"/>
|
| 23 |
+
<location value="476"/>
|
| 24 |
+
<location value="39"/>
|
| 25 |
+
</picture>
|
| 26 |
+
<group>
|
| 27 |
+
<table>
|
| 28 |
+
<location value="103"/>
|
| 29 |
+
<location value="51"/>
|
| 30 |
+
<location value="452"/>
|
| 31 |
+
<location value="192"/>
|
| 32 |
+
<ched/>
|
| 33 |
+
Zeile
|
| 34 |
+
<ched/>
|
| 35 |
+
Bauteil
|
| 36 |
+
<ched/>
|
| 37 |
+
Empfehlungen für normalen Schall- schutz erf. bew. Schall- dämm-Maß Gn w in dB
|
| 38 |
+
<nl/>
|
| 39 |
+
<rhed/>
|
| 40 |
+
1
|
| 41 |
+
<fcel/>
|
| 42 |
+
<text>
|
| 43 |
+
<location value="136"/>
|
| 44 |
+
<location value="94"/>
|
| 45 |
+
<location value="195"/>
|
| 46 |
+
<location value="98"/>
|
| 47 |
+
Wände zwischen
|
| 48 |
+
</text>
|
| 49 |
+
<list>
|
| 50 |
+
<ldiv/>
|
| 51 |
+
<location value="136"/>
|
| 52 |
+
<location value="100"/>
|
| 53 |
+
<location value="255"/>
|
| 54 |
+
<location value="104"/>
|
| 55 |
+
- Arztzimmern bzw. U+B-Räume
|
| 56 |
+
<ldiv/>
|
| 57 |
+
<location value="136"/>
|
| 58 |
+
<location value="106"/>
|
| 59 |
+
<location value="296"/>
|
| 60 |
+
<location value="111"/>
|
| 61 |
+
- Personal- und Patientenaufenthaltsräumen
|
| 62 |
+
<ldiv/>
|
| 63 |
+
<location value="136"/>
|
| 64 |
+
<location value="113"/>
|
| 65 |
+
<location value="191"/>
|
| 66 |
+
<location value="117"/>
|
| 67 |
+
- Büroräumen
|
| 68 |
+
<ldiv/>
|
| 69 |
+
<location value="136"/>
|
| 70 |
+
<location value="119"/>
|
| 71 |
+
<location value="195"/>
|
| 72 |
+
<location value="124"/>
|
| 73 |
+
- Laborräumen
|
| 74 |
+
<ldiv/>
|
| 75 |
+
<location value="136"/>
|
| 76 |
+
<location value="125"/>
|
| 77 |
+
<location value="318"/>
|
| 78 |
+
<location value="136"/>
|
| 79 |
+
- Fluren und Arztzimmern bzw. Aufenthaltsräumen, Büroräumen, Laborräumen
|
| 80 |
+
</list>
|
| 81 |
+
<fcel/>
|
| 82 |
+
+ 42
|
| 83 |
+
<nl/>
|
| 84 |
+
<rhed/>
|
| 85 |
+
2
|
| 86 |
+
<fcel/>
|
| 87 |
+
<text>
|
| 88 |
+
<location value="136"/>
|
| 89 |
+
<location value="140"/>
|
| 90 |
+
<location value="195"/>
|
| 91 |
+
<location value="145"/>
|
| 92 |
+
Wände zwischen
|
| 93 |
+
</text>
|
| 94 |
+
<list>
|
| 95 |
+
<ldiv/>
|
| 96 |
+
<location value="136"/>
|
| 97 |
+
<location value="147"/>
|
| 98 |
+
<location value="224"/>
|
| 99 |
+
<location value="152"/>
|
| 100 |
+
- Besprechungsräumen
|
| 101 |
+
<ldiv/>
|
| 102 |
+
<location value="136"/>
|
| 103 |
+
<location value="153"/>
|
| 104 |
+
<location value="204"/>
|
| 105 |
+
<location value="157"/>
|
| 106 |
+
- Chefarzträumen
|
| 107 |
+
<ldiv/>
|
| 108 |
+
<location value="136"/>
|
| 109 |
+
<location value="159"/>
|
| 110 |
+
<location value="361"/>
|
| 111 |
+
<location value="171"/>
|
| 112 |
+
- Fluren und Besprechungsräumen bzw. Chefarzträumen sowie Räumen zur Behandlung vertraulicher Angelegenheiten
|
| 113 |
+
</list>
|
| 114 |
+
<fcel/>
|
| 115 |
+
+ 47
|
| 116 |
+
<nl/>
|
| 117 |
+
<rhed/>
|
| 118 |
+
3
|
| 119 |
+
<fcel/>
|
| 120 |
+
<text>
|
| 121 |
+
<location value="136"/>
|
| 122 |
+
<location value="175"/>
|
| 123 |
+
<location value="239"/>
|
| 124 |
+
<location value="179"/>
|
| 125 |
+
Türen in Wänden nach Zeile 1
|
| 126 |
+
</text>
|
| 127 |
+
<fcel/>
|
| 128 |
+
+ 32 1)
|
| 129 |
+
<nl/>
|
| 130 |
+
<rhed/>
|
| 131 |
+
4
|
| 132 |
+
<fcel/>
|
| 133 |
+
<text>
|
| 134 |
+
<location value="136"/>
|
| 135 |
+
<location value="184"/>
|
| 136 |
+
<location value="240"/>
|
| 137 |
+
<location value="189"/>
|
| 138 |
+
Türen in Wänden nach Zeile 2
|
| 139 |
+
</text>
|
| 140 |
+
<fcel/>
|
| 141 |
+
+ 37 1)
|
| 142 |
+
<nl/>
|
| 143 |
+
</table>
|
| 144 |
+
<footnote>
|
| 145 |
+
<location value="104"/>
|
| 146 |
+
<location value="203"/>
|
| 147 |
+
<location value="395"/>
|
| 148 |
+
<location value="210"/>
|
| 149 |
+
1) Bei Türen gilt nach Tabelle 1 der DIN 4109-1 erforderliches Schalldämm-Maß Rw.
|
| 150 |
+
</footnote>
|
| 151 |
+
</group>
|
| 152 |
+
<list>
|
| 153 |
+
<ldiv/>
|
| 154 |
+
<location value="60"/>
|
| 155 |
+
<location value="236"/>
|
| 156 |
+
<location value="452"/>
|
| 157 |
+
<location value="254"/>
|
| 158 |
+
Schalldämmung zwischen besonders lauten Räumen und schutzbedürftigen 4.2.4 Räumen
|
| 159 |
+
</list>
|
| 160 |
+
<text>
|
| 161 |
+
<location value="103"/>
|
| 162 |
+
<location value="271"/>
|
| 163 |
+
<location value="451"/>
|
| 164 |
+
<location value="301"/>
|
| 165 |
+
Für die Luft- und Trittschalldämmung von Bauteilen zwischen besonders lauten Technikräumen (z. B. 5. Obergeschoss) und schutzbedürftigen Räumen (Betten- zimmern) sind gemäß DIN 4109-1 folgende Anforderungen zu stellen:
|
| 166 |
+
</text>
|
| 167 |
+
<group>
|
| 168 |
+
<table>
|
| 169 |
+
<location value="103"/>
|
| 170 |
+
<location value="316"/>
|
| 171 |
+
<location value="452"/>
|
| 172 |
+
<location value="386"/>
|
| 173 |
+
<ched/>
|
| 174 |
+
Nr.
|
| 175 |
+
<ched/>
|
| 176 |
+
Bauteil
|
| 177 |
+
<ched/>
|
| 178 |
+
<![CDATA[erf. bew. Schall- dämm-Maß erf. R'w [dB]]]> <ched/>
|
| 179 |
+
<![CDATA[erf. Norm- Trittschallpegel erf. L'n,w [dB]]]> <nl/>
|
| 180 |
+
<srow/>
|
| 181 |
+
Technikräume (Innenpegel Li,max | 75 dB(A))
|
| 182 |
+
<lcel/>
|
| 183 |
+
<lcel/>
|
| 184 |
+
<lcel/>
|
| 185 |
+
<nl/>
|
| 186 |
+
<rhed/>
|
| 187 |
+
1
|
| 188 |
+
<fcel/>
|
| 189 |
+
Wände und Decken
|
| 190 |
+
<fcel/>
|
| 191 |
+
57
|
| 192 |
+
<fcel/>
|
| 193 |
+
-
|
| 194 |
+
<nl/>
|
| 195 |
+
<rhed/>
|
| 196 |
+
2
|
| 197 |
+
<fcel/>
|
| 198 |
+
Fußböden
|
| 199 |
+
<fcel/>
|
| 200 |
+
-
|
| 201 |
+
<fcel/>
|
| 202 |
+
43 1)
|
| 203 |
+
<nl/>
|
| 204 |
+
</table>
|
| 205 |
+
<footnote>
|
| 206 |
+
<location value="104"/>
|
| 207 |
+
<location value="397"/>
|
| 208 |
+
<location value="451"/>
|
| 209 |
+
<location value="410"/>
|
| 210 |
+
1) Nicht erforderlich, wenn geräuscherzeugende Anlagen ausreichend köperschallgedämmt aufge- stellt werden.
|
| 211 |
+
</footnote>
|
| 212 |
+
</group>
|
| 213 |
+
</doclang>
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_ref/002a_table_order/output.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_ref/002a_table_order/output_kv_p1.png
ADDED
|
Git LFS Details
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/doclang_ref/002a_table_order/output_no_content.dclg.xml
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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+
<location value="101"/>
|
| 7 |
+
<location value="29"/>
|
| 8 |
+
</text>
|
| 9 |
+
<text>
|
| 10 |
+
<layer value="furniture"/>
|
| 11 |
+
<location value="245"/>
|
| 12 |
+
<location value="24"/>
|
| 13 |
+
<location value="267"/>
|
| 14 |
+
<location value="29"/>
|
| 15 |
+
</text>
|
| 16 |
+
<picture>
|
| 17 |
+
<label value="other"/>
|
| 18 |
+
<layer value="furniture"/>
|
| 19 |
+
<location value="432"/>
|
| 20 |
+
<location value="10"/>
|
| 21 |
+
<location value="476"/>
|
| 22 |
+
<location value="39"/>
|
| 23 |
+
</picture>
|
| 24 |
+
<group>
|
| 25 |
+
<table>
|
| 26 |
+
<location value="103"/>
|
| 27 |
+
<location value="51"/>
|
| 28 |
+
<location value="452"/>
|
| 29 |
+
<location value="192"/>
|
| 30 |
+
<ched/>
|
| 31 |
+
<ched/>
|
| 32 |
+
<ched/>
|
| 33 |
+
<nl/>
|
| 34 |
+
<rhed/>
|
| 35 |
+
<fcel/>
|
| 36 |
+
<text>
|
| 37 |
+
<location value="136"/>
|
| 38 |
+
<location value="94"/>
|
| 39 |
+
<location value="195"/>
|
| 40 |
+
<location value="98"/>
|
| 41 |
+
</text>
|
| 42 |
+
<list>
|
| 43 |
+
<ldiv/>
|
| 44 |
+
<location value="136"/>
|
| 45 |
+
<location value="100"/>
|
| 46 |
+
<location value="255"/>
|
| 47 |
+
<location value="104"/>
|
| 48 |
+
<ldiv/>
|
| 49 |
+
<location value="136"/>
|
| 50 |
+
<location value="106"/>
|
| 51 |
+
<location value="296"/>
|
| 52 |
+
<location value="111"/>
|
| 53 |
+
<ldiv/>
|
| 54 |
+
<location value="136"/>
|
| 55 |
+
<location value="113"/>
|
| 56 |
+
<location value="191"/>
|
| 57 |
+
<location value="117"/>
|
| 58 |
+
<ldiv/>
|
| 59 |
+
<location value="136"/>
|
| 60 |
+
<location value="119"/>
|
| 61 |
+
<location value="195"/>
|
| 62 |
+
<location value="124"/>
|
| 63 |
+
<ldiv/>
|
| 64 |
+
<location value="136"/>
|
| 65 |
+
<location value="125"/>
|
| 66 |
+
<location value="318"/>
|
| 67 |
+
<location value="136"/>
|
| 68 |
+
</list>
|
| 69 |
+
<fcel/>
|
| 70 |
+
<nl/>
|
| 71 |
+
<rhed/>
|
| 72 |
+
<fcel/>
|
| 73 |
+
<text>
|
| 74 |
+
<location value="136"/>
|
| 75 |
+
<location value="140"/>
|
| 76 |
+
<location value="195"/>
|
| 77 |
+
<location value="145"/>
|
| 78 |
+
</text>
|
| 79 |
+
<list>
|
| 80 |
+
<ldiv/>
|
| 81 |
+
<location value="136"/>
|
| 82 |
+
<location value="147"/>
|
| 83 |
+
<location value="224"/>
|
| 84 |
+
<location value="152"/>
|
| 85 |
+
<ldiv/>
|
| 86 |
+
<location value="136"/>
|
| 87 |
+
<location value="153"/>
|
| 88 |
+
<location value="204"/>
|
| 89 |
+
<location value="157"/>
|
| 90 |
+
<ldiv/>
|
| 91 |
+
<location value="136"/>
|
| 92 |
+
<location value="159"/>
|
| 93 |
+
<location value="361"/>
|
| 94 |
+
<location value="171"/>
|
| 95 |
+
</list>
|
| 96 |
+
<fcel/>
|
| 97 |
+
<nl/>
|
| 98 |
+
<rhed/>
|
| 99 |
+
<fcel/>
|
| 100 |
+
<text>
|
| 101 |
+
<location value="136"/>
|
| 102 |
+
<location value="175"/>
|
| 103 |
+
<location value="239"/>
|
| 104 |
+
<location value="179"/>
|
| 105 |
+
</text>
|
| 106 |
+
<fcel/>
|
| 107 |
+
<nl/>
|
| 108 |
+
<rhed/>
|
| 109 |
+
<fcel/>
|
| 110 |
+
<text>
|
| 111 |
+
<location value="136"/>
|
| 112 |
+
<location value="184"/>
|
| 113 |
+
<location value="240"/>
|
| 114 |
+
<location value="189"/>
|
| 115 |
+
</text>
|
| 116 |
+
<fcel/>
|
| 117 |
+
<nl/>
|
| 118 |
+
</table>
|
| 119 |
+
<footnote>
|
| 120 |
+
<location value="104"/>
|
| 121 |
+
<location value="203"/>
|
| 122 |
+
<location value="395"/>
|
| 123 |
+
<location value="210"/>
|
| 124 |
+
</footnote>
|
| 125 |
+
</group>
|
| 126 |
+
<list>
|
| 127 |
+
<ldiv/>
|
| 128 |
+
<location value="60"/>
|
| 129 |
+
<location value="236"/>
|
| 130 |
+
<location value="452"/>
|
| 131 |
+
<location value="254"/>
|
| 132 |
+
</list>
|
| 133 |
+
<text>
|
| 134 |
+
<location value="103"/>
|
| 135 |
+
<location value="271"/>
|
| 136 |
+
<location value="451"/>
|
| 137 |
+
<location value="301"/>
|
| 138 |
+
</text>
|
| 139 |
+
<group>
|
| 140 |
+
<table>
|
| 141 |
+
<location value="103"/>
|
| 142 |
+
<location value="316"/>
|
| 143 |
+
<location value="452"/>
|
| 144 |
+
<location value="386"/>
|
| 145 |
+
<ched/>
|
| 146 |
+
<ched/>
|
| 147 |
+
<ched/>
|
| 148 |
+
<ched/>
|
| 149 |
+
<nl/>
|
| 150 |
+
<srow/>
|
| 151 |
+
<lcel/>
|
| 152 |
+
<lcel/>
|
| 153 |
+
<lcel/>
|
| 154 |
+
<nl/>
|
| 155 |
+
<rhed/>
|
| 156 |
+
<fcel/>
|
| 157 |
+
<fcel/>
|
| 158 |
+
<fcel/>
|
| 159 |
+
<nl/>
|
| 160 |
+
<rhed/>
|
| 161 |
+
<fcel/>
|
| 162 |
+
<fcel/>
|
| 163 |
+
<fcel/>
|
| 164 |
+
<nl/>
|
| 165 |
+
</table>
|
| 166 |
+
<footnote>
|
| 167 |
+
<location value="104"/>
|
| 168 |
+
<location value="397"/>
|
| 169 |
+
<location value="451"/>
|
| 170 |
+
<location value="410"/>
|
| 171 |
+
</footnote>
|
| 172 |
+
</group>
|
| 173 |
+
</doclang>
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/document_index.gt.dclg.xml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<doclang>
|
| 2 |
+
<table>
|
| 3 |
+
<ched/>
|
| 4 |
+
Header 1
|
| 5 |
+
<ched/>
|
| 6 |
+
Header 2
|
| 7 |
+
<nl/>
|
| 8 |
+
<fcel/>
|
| 9 |
+
Data 1
|
| 10 |
+
<fcel/>
|
| 11 |
+
Data 2
|
| 12 |
+
<nl/>
|
| 13 |
+
</table>
|
| 14 |
+
<index>
|
| 15 |
+
<fcel/>
|
| 16 |
+
Index 1
|
| 17 |
+
<fcel/>
|
| 18 |
+
Page 1
|
| 19 |
+
<nl/>
|
| 20 |
+
<fcel/>
|
| 21 |
+
Index 2
|
| 22 |
+
<fcel/>
|
| 23 |
+
Page 2
|
| 24 |
+
<nl/>
|
| 25 |
+
</index>
|
| 26 |
+
</doclang>
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc.gt.tex
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
\documentclass[11pt,a4paper]{article}
|
| 2 |
+
|
| 3 |
+
\usepackage[utf8]{inputenc} % allow utf-8 input
|
| 4 |
+
\usepackage[T1]{fontenc} % use 8-bit T1 fonts
|
| 5 |
+
\usepackage{hyperref} % hyperlinks
|
| 6 |
+
\usepackage{url} % simple URL typesetting
|
| 7 |
+
\usepackage{booktabs} % professional-quality tables
|
| 8 |
+
\usepackage{amsfonts} % blackboard math symbols
|
| 9 |
+
\usepackage{nicefrac} % compact symbols for 1/2, etc.
|
| 10 |
+
\usepackage{microtype} % microtypography
|
| 11 |
+
\usepackage{xcolor} % colors
|
| 12 |
+
\usepackage{graphicx} % graphics
|
| 13 |
+
\usepackage[normalem]{ulem} % strikethrough
|
| 14 |
+
\title{DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis}
|
| 15 |
+
|
| 16 |
+
\begin{document}
|
| 17 |
+
|
| 18 |
+
\maketitle
|
| 19 |
+
|
| 20 |
+
\begin{figure}[h]
|
| 21 |
+
% image
|
| 22 |
+
\caption{Figure 1: Four examples of complex page layouts across different document categories}
|
| 23 |
+
% annotation[classification]: bar chart
|
| 24 |
+
% annotation[description]: ...
|
| 25 |
+
% annotation[molecule_data]: CC1=NNC(C2=CN3C=CN=C3C(CC3=CC(F)=CC(F)=C3)=N2)=N1
|
| 26 |
+
% annotation[docling_legacy__misc]: {'myanalysis': {'prediction': 'abc'}, 'something_else': {'text': 'aaa'}}
|
| 27 |
+
\end{figure}
|
| 28 |
+
|
| 29 |
+
% annotation[description]: A description annotation for this table.
|
| 30 |
+
% annotation[docling_legacy__misc]: {'foo': 'bar'}
|
| 31 |
+
|
| 32 |
+
\end{document}
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc.yaml
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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+
name: "dummy_doc"
|
| 5 |
+
origin:
|
| 6 |
+
binary_hash: 7954723514066505909
|
| 7 |
+
filename: dummy_doc.pdf
|
| 8 |
+
mimetype: application/pdf
|
| 9 |
+
uri: null
|
| 10 |
+
|
| 11 |
+
# Root element for any headers, footers, framing, navigation elements, all other non-body text, type GroupItem
|
| 12 |
+
furniture:
|
| 13 |
+
name: "_root_"
|
| 14 |
+
self_ref: "#/furniture"
|
| 15 |
+
parent: null # Only root elements have no parent.
|
| 16 |
+
children: # only the first-level children appear here, as references (RefItem)
|
| 17 |
+
- $ref: "#/texts/0"
|
| 18 |
+
|
| 19 |
+
# Root element for anything in the document body, type GroupItem
|
| 20 |
+
body:
|
| 21 |
+
name: "_root_"
|
| 22 |
+
self_ref: "#/body"
|
| 23 |
+
parent: null # Only root elements have no parent.
|
| 24 |
+
children: # only the first-level children appear here, as references (RefItem)
|
| 25 |
+
- $ref: "#/texts/1"
|
| 26 |
+
- $ref: "#/pictures/0"
|
| 27 |
+
- $ref: "#/texts/3"
|
| 28 |
+
- $ref: "#/tables/0"
|
| 29 |
+
|
| 30 |
+
# All groups of items nested deeper in body or furniture roots, type List[GroupItem]
|
| 31 |
+
groups: [] # The parent + children relations capture nesting and reading-order.
|
| 32 |
+
|
| 33 |
+
# All elements that have a text-string representation, type TextItem.
|
| 34 |
+
# This is a flat list of all elements without implied order.
|
| 35 |
+
texts:
|
| 36 |
+
- orig: "arXiv:2206.01062v1 [cs.CV] 2 Jun 2022"
|
| 37 |
+
text: "arXiv:2206.01062v1 [cs.CV] 2 Jun 2022"
|
| 38 |
+
self_ref: "#/texts/0"
|
| 39 |
+
label: "page_header"
|
| 40 |
+
parent:
|
| 41 |
+
$ref: "#/furniture"
|
| 42 |
+
children: []
|
| 43 |
+
prov:
|
| 44 |
+
- page_no: 1
|
| 45 |
+
bbox:
|
| 46 |
+
l: 21.3
|
| 47 |
+
t: 52.3
|
| 48 |
+
b: 476.2
|
| 49 |
+
r: 35.2
|
| 50 |
+
charspan: [ 1,423 ] # 2-tuple, references to "orig"
|
| 51 |
+
- orig: "DocLayNet: A Large Human-Annotated Dataset for\nDocument-Layout Analysis"
|
| 52 |
+
text: "DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis"
|
| 53 |
+
self_ref: "#/texts/1"
|
| 54 |
+
label: "title"
|
| 55 |
+
parent:
|
| 56 |
+
$ref: "#/body"
|
| 57 |
+
children: [ ]
|
| 58 |
+
prov: # must exist, can be empty
|
| 59 |
+
- page_no: 1
|
| 60 |
+
bbox:
|
| 61 |
+
l: 65.0
|
| 62 |
+
t: 30.1
|
| 63 |
+
b: 53.4
|
| 64 |
+
r: 623.2
|
| 65 |
+
charspan: [ 1,423 ] # 2-tuple, references to "orig"
|
| 66 |
+
- orig: "OPERATION (cont.)" # nested inside the figure
|
| 67 |
+
text: "OPERATION (cont.)"
|
| 68 |
+
self_ref: "#/texts/2"
|
| 69 |
+
label: "section_header"
|
| 70 |
+
parent:
|
| 71 |
+
$ref: "#/pictures/0"
|
| 72 |
+
children: [ ]
|
| 73 |
+
prov:
|
| 74 |
+
- page_no: 1
|
| 75 |
+
bbox:
|
| 76 |
+
l: 323.0
|
| 77 |
+
t: 354.3
|
| 78 |
+
b: 334.4
|
| 79 |
+
r: 376.0
|
| 80 |
+
coord_origin: BOTTOMLEFT
|
| 81 |
+
charspan: [ 0,734 ]
|
| 82 |
+
- orig: "Figure 1: Four examples of complex page layouts across dif-\nferent document categories" # nested inside the figure
|
| 83 |
+
text: "Figure 1: Four examples of complex page layouts across different document categories"
|
| 84 |
+
self_ref: "#/texts/3"
|
| 85 |
+
label: "caption"
|
| 86 |
+
parent:
|
| 87 |
+
$ref: "#/body"
|
| 88 |
+
children: [ ]
|
| 89 |
+
prov:
|
| 90 |
+
- page_no: 1
|
| 91 |
+
bbox:
|
| 92 |
+
l: 323.0
|
| 93 |
+
t: 354.3
|
| 94 |
+
b: 334.4
|
| 95 |
+
r: 376.0
|
| 96 |
+
coord_origin: BOTTOMLEFT
|
| 97 |
+
charspan: [ 1,423 ] # 2-tuple, references to "orig"
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
tables: # All tables...
|
| 101 |
+
- self_ref: "#/tables/0"
|
| 102 |
+
label: "table"
|
| 103 |
+
parent:
|
| 104 |
+
$ref: "#/body"
|
| 105 |
+
children: [ ]
|
| 106 |
+
annotations:
|
| 107 |
+
- kind: description
|
| 108 |
+
text: "A description annotation for this table."
|
| 109 |
+
provenance: "model3"
|
| 110 |
+
- kind: misc
|
| 111 |
+
content:
|
| 112 |
+
foo: bar
|
| 113 |
+
image:
|
| 114 |
+
mimetype: image/png
|
| 115 |
+
dpi: 72
|
| 116 |
+
size:
|
| 117 |
+
width: 231
|
| 118 |
+
height: 351
|
| 119 |
+
#uri: "file:///dummy_doc/tables/0.png"
|
| 120 |
+
#alternatives: base64 encoded striong
|
| 121 |
+
uri: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII="
|
| 122 |
+
data: # TableData Type
|
| 123 |
+
table_cells: [] # flat list of TableCell type
|
| 124 |
+
grid: [[]] # list-of-list of TableCell type
|
| 125 |
+
otsl: "<fcel><ecel>..." # OTSL token string
|
| 126 |
+
html: "" # ??
|
| 127 |
+
prov:
|
| 128 |
+
- page_no: 1
|
| 129 |
+
bbox:
|
| 130 |
+
l: 323.0
|
| 131 |
+
t: 354.3
|
| 132 |
+
b: 334.4
|
| 133 |
+
r: 376.0
|
| 134 |
+
coord_origin: BOTTOMLEFT
|
| 135 |
+
charspan: [ 1,423 ] # 2-tuple, references to "orig"
|
| 136 |
+
|
| 137 |
+
pictures: # All pictures...
|
| 138 |
+
- self_ref: "#/pictures/0"
|
| 139 |
+
label: "picture"
|
| 140 |
+
parent:
|
| 141 |
+
$ref: "#/body"
|
| 142 |
+
captions:
|
| 143 |
+
- $ref: "#/texts/3"
|
| 144 |
+
annotations: # PictureData Type
|
| 145 |
+
- kind: classification
|
| 146 |
+
provenance: model1
|
| 147 |
+
predicted_classes:
|
| 148 |
+
- class_name: "bar_chart"
|
| 149 |
+
confidence: 0.78
|
| 150 |
+
- kind: description
|
| 151 |
+
text: "..."
|
| 152 |
+
provenance: "model2"
|
| 153 |
+
- kind: molecule_data
|
| 154 |
+
smi: "CC1=NNC(C2=CN3C=CN=C3C(CC3=CC(F)=CC(F)=C3)=N2)=N1"
|
| 155 |
+
confidence: 0.98
|
| 156 |
+
class_name: "chemistry_molecular_structure"
|
| 157 |
+
segmentation: [[0,0],[1,0],[0,1],[1,1]]
|
| 158 |
+
provenance: "model3-1.0.0"
|
| 159 |
+
- kind: misc
|
| 160 |
+
content:
|
| 161 |
+
myanalysis:
|
| 162 |
+
prediction: "abc"
|
| 163 |
+
something_else:
|
| 164 |
+
text: "aaa"
|
| 165 |
+
# content structure?
|
| 166 |
+
image:
|
| 167 |
+
mimetype: image/png
|
| 168 |
+
dpi: 72
|
| 169 |
+
size:
|
| 170 |
+
width: 231
|
| 171 |
+
height: 351
|
| 172 |
+
#uri: "file:///dummy_doc/pictures/0.png"
|
| 173 |
+
#alternatives: base64 encoded strong
|
| 174 |
+
uri: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII="
|
| 175 |
+
children:
|
| 176 |
+
- $ref: "#/texts/2" # This text element appears inside the figure, hence it is a child.
|
| 177 |
+
prov:
|
| 178 |
+
- page_no: 1
|
| 179 |
+
bbox:
|
| 180 |
+
l: 456.3
|
| 181 |
+
t: 145.8
|
| 182 |
+
b: 583.15
|
| 183 |
+
r: 702.5
|
| 184 |
+
charspan: [ 0,288 ]
|
| 185 |
+
- self_ref: "#/pictures/1"
|
| 186 |
+
label: "picture"
|
| 187 |
+
parent:
|
| 188 |
+
$ref: "#/body"
|
| 189 |
+
annotations: []
|
| 190 |
+
image:
|
| 191 |
+
mimetype: image/png
|
| 192 |
+
dpi: 72
|
| 193 |
+
size:
|
| 194 |
+
width: 2.0
|
| 195 |
+
height: 2.0
|
| 196 |
+
uri: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII="
|
| 197 |
+
prov: []
|
| 198 |
+
|
| 199 |
+
key_value_items: [ ] # All KV-items
|
| 200 |
+
|
| 201 |
+
# We should consider this for pages
|
| 202 |
+
pages: # Optional, for layout documents
|
| 203 |
+
1:
|
| 204 |
+
size:
|
| 205 |
+
width: 768.23
|
| 206 |
+
height: 583.15
|
| 207 |
+
image:
|
| 208 |
+
mimetype: image/png
|
| 209 |
+
dpi: 144
|
| 210 |
+
size:
|
| 211 |
+
width: 1536
|
| 212 |
+
height: 1166
|
| 213 |
+
#uri: "file:///dummy_doc/pages/1.png"
|
| 214 |
+
#alternatives: base64 encoded string
|
| 215 |
+
uri: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII="
|
| 216 |
+
num_elements: 23
|
| 217 |
+
page_no: 1
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc.yaml.dt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<doctag><title><loc_42><loc_26><loc_406><loc_46>DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis</title>
|
| 2 |
+
<chart><loc_297><loc_125><loc_457><loc_499><bar_chart><smiles>CC1=NNC(C2=CN3C=CN=C3C(CC3=CC(F)=CC(F)=C3)=N2)=N1</smiles><caption><loc_210><loc_196><loc_245><loc_213>Figure 1: Four examples of complex page layouts across different document categories</caption></chart>
|
| 3 |
+
<otsl><loc_210><loc_196><loc_245><loc_213></otsl>
|
| 4 |
+
</doctag>
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc.yaml.et
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
0: unspecified with name=_root_
|
| 2 |
+
1: title: DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis
|
| 3 |
+
2: picture
|
| 4 |
+
3: section_header: OPERATION (cont.)
|
| 5 |
+
4: caption: Figure 1: Four examples of complex page layouts across different document categories
|
| 6 |
+
5: table
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc.yaml.html
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8"/>
|
| 5 |
+
<title>dummy_doc</title>
|
| 6 |
+
<meta name="generator" content="Docling HTML Serializer"/>
|
| 7 |
+
<style>
|
| 8 |
+
html {
|
| 9 |
+
background-color: #f5f5f5;
|
| 10 |
+
font-family: Arial, sans-serif;
|
| 11 |
+
line-height: 1.6;
|
| 12 |
+
}
|
| 13 |
+
body {
|
| 14 |
+
max-width: 800px;
|
| 15 |
+
margin: 0 auto;
|
| 16 |
+
padding: 2rem;
|
| 17 |
+
background-color: white;
|
| 18 |
+
box-shadow: 0 0 10px rgba(0,0,0,0.1);
|
| 19 |
+
}
|
| 20 |
+
h1, h2, h3, h4, h5, h6 {
|
| 21 |
+
color: #333;
|
| 22 |
+
margin-top: 1.5em;
|
| 23 |
+
margin-bottom: 0.5em;
|
| 24 |
+
}
|
| 25 |
+
h1 {
|
| 26 |
+
font-size: 2em;
|
| 27 |
+
border-bottom: 1px solid #eee;
|
| 28 |
+
padding-bottom: 0.3em;
|
| 29 |
+
}
|
| 30 |
+
table {
|
| 31 |
+
border-collapse: collapse;
|
| 32 |
+
margin: 1em 0;
|
| 33 |
+
width: 100%;
|
| 34 |
+
}
|
| 35 |
+
th, td {
|
| 36 |
+
border: 1px solid #ddd;
|
| 37 |
+
padding: 8px;
|
| 38 |
+
text-align: left;
|
| 39 |
+
}
|
| 40 |
+
th {
|
| 41 |
+
background-color: #f2f2f2;
|
| 42 |
+
font-weight: bold;
|
| 43 |
+
}
|
| 44 |
+
figure {
|
| 45 |
+
margin: 1.5em 0;
|
| 46 |
+
text-align: center;
|
| 47 |
+
}
|
| 48 |
+
figcaption {
|
| 49 |
+
color: #666;
|
| 50 |
+
font-style: italic;
|
| 51 |
+
margin-top: 0.5em;
|
| 52 |
+
}
|
| 53 |
+
img {
|
| 54 |
+
max-width: 100%;
|
| 55 |
+
height: auto;
|
| 56 |
+
}
|
| 57 |
+
pre {
|
| 58 |
+
background-color: #f6f8fa;
|
| 59 |
+
border-radius: 3px;
|
| 60 |
+
padding: 1em;
|
| 61 |
+
overflow: auto;
|
| 62 |
+
}
|
| 63 |
+
code {
|
| 64 |
+
font-family: monospace;
|
| 65 |
+
background-color: #f6f8fa;
|
| 66 |
+
padding: 0.2em 0.4em;
|
| 67 |
+
border-radius: 3px;
|
| 68 |
+
}
|
| 69 |
+
pre code {
|
| 70 |
+
background-color: transparent;
|
| 71 |
+
padding: 0;
|
| 72 |
+
}
|
| 73 |
+
.formula {
|
| 74 |
+
text-align: center;
|
| 75 |
+
padding: 0.5em;
|
| 76 |
+
margin: 1em 0;
|
| 77 |
+
background-color: #f9f9f9;
|
| 78 |
+
}
|
| 79 |
+
.formula-not-decoded {
|
| 80 |
+
text-align: center;
|
| 81 |
+
padding: 0.5em;
|
| 82 |
+
margin: 1em 0;
|
| 83 |
+
background: repeating-linear-gradient(
|
| 84 |
+
45deg,
|
| 85 |
+
#f0f0f0,
|
| 86 |
+
#f0f0f0 10px,
|
| 87 |
+
#f9f9f9 10px,
|
| 88 |
+
#f9f9f9 20px
|
| 89 |
+
);
|
| 90 |
+
}
|
| 91 |
+
.page-break {
|
| 92 |
+
page-break-after: always;
|
| 93 |
+
border-top: 1px dashed #ccc;
|
| 94 |
+
margin: 2em 0;
|
| 95 |
+
}
|
| 96 |
+
.key-value-region {
|
| 97 |
+
background-color: #f9f9f9;
|
| 98 |
+
padding: 1em;
|
| 99 |
+
border-radius: 4px;
|
| 100 |
+
margin: 1em 0;
|
| 101 |
+
}
|
| 102 |
+
.key-value-region dt {
|
| 103 |
+
font-weight: bold;
|
| 104 |
+
}
|
| 105 |
+
.key-value-region dd {
|
| 106 |
+
margin-left: 1em;
|
| 107 |
+
margin-bottom: 0.5em;
|
| 108 |
+
}
|
| 109 |
+
.form-container {
|
| 110 |
+
border: 1px solid #ddd;
|
| 111 |
+
padding: 1em;
|
| 112 |
+
border-radius: 4px;
|
| 113 |
+
margin: 1em 0;
|
| 114 |
+
}
|
| 115 |
+
.form-item {
|
| 116 |
+
margin-bottom: 0.5em;
|
| 117 |
+
}
|
| 118 |
+
.image-classification {
|
| 119 |
+
font-size: 0.9em;
|
| 120 |
+
color: #666;
|
| 121 |
+
margin-top: 0.5em;
|
| 122 |
+
}
|
| 123 |
+
details.docling-meta {
|
| 124 |
+
margin: 0.5em 0;
|
| 125 |
+
font-size: 0.9em;
|
| 126 |
+
text-align: left;
|
| 127 |
+
}
|
| 128 |
+
figure details.docling-meta {
|
| 129 |
+
text-align: left;
|
| 130 |
+
}
|
| 131 |
+
details.docling-meta > summary {
|
| 132 |
+
cursor: pointer;
|
| 133 |
+
color: #555;
|
| 134 |
+
font-style: italic;
|
| 135 |
+
padding: 2px 6px;
|
| 136 |
+
}
|
| 137 |
+
.docling-meta-field {
|
| 138 |
+
background-color: #f0f0f0;
|
| 139 |
+
border-left: 3px solid #ccc;
|
| 140 |
+
padding: 6px 10px;
|
| 141 |
+
margin: 4px 0 4px 1em;
|
| 142 |
+
border-radius: 3px;
|
| 143 |
+
text-align: left;
|
| 144 |
+
}
|
| 145 |
+
.docling-meta-field-label {
|
| 146 |
+
font-weight: bold;
|
| 147 |
+
color: #444;
|
| 148 |
+
}
|
| 149 |
+
pre.docling-meta-code {
|
| 150 |
+
background-color: #1e1e1e;
|
| 151 |
+
color: #d4d4d4;
|
| 152 |
+
border-radius: 4px;
|
| 153 |
+
padding: 10px 12px;
|
| 154 |
+
margin: 6px 0;
|
| 155 |
+
overflow-x: auto;
|
| 156 |
+
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
| 157 |
+
font-size: 0.85em;
|
| 158 |
+
line-height: 1.45;
|
| 159 |
+
white-space: pre;
|
| 160 |
+
tab-size: 4;
|
| 161 |
+
}
|
| 162 |
+
pre.docling-meta-code code {
|
| 163 |
+
background: transparent;
|
| 164 |
+
border: none;
|
| 165 |
+
padding: 0;
|
| 166 |
+
color: inherit;
|
| 167 |
+
font-family: inherit;
|
| 168 |
+
font-size: inherit;
|
| 169 |
+
display: block;
|
| 170 |
+
white-space: pre;
|
| 171 |
+
}
|
| 172 |
+
</style>
|
| 173 |
+
</head>
|
| 174 |
+
<body>
|
| 175 |
+
<div class='page'>
|
| 176 |
+
<h1>DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis</h1>
|
| 177 |
+
<figure><figcaption><div class="caption">Figure 1: Four examples of complex page layouts across different document categories</div></figcaption><details class="docling-meta"><summary>Meta</summary><div class="docling-meta-field" data-meta-name="description"><span class="docling-meta-field-label">description:</span> <span class="docling-meta-field-value">...</span></div><div class="docling-meta-field" data-meta-name="classification"><span class="docling-meta-field-label">classification:</span> <span class="docling-meta-field-value">Bar chart</span></div><div class="docling-meta-field" data-meta-name="molecule"><span class="docling-meta-field-label">molecule:</span> <span class="docling-meta-field-value">CC1=NNC(C2=CN3C=CN=C3C(CC3=CC(F)=CC(F)=C3)=N2)=N1</span></div><div class="docling-meta-field" data-meta-name="docling_legacy__misc"><span class="docling-meta-field-label">docling_legacy__misc:</span> <span class="docling-meta-field-value">{'myanalysis': {'prediction': 'abc'}, 'something_else': {'text': 'aaa'}}</span></div></details></figure>
|
| 178 |
+
<details class="docling-meta"><summary>Meta</summary><div class="docling-meta-field" data-meta-name="description"><span class="docling-meta-field-label">description:</span> <span class="docling-meta-field-value">A description annotation for this table.</span></div><div class="docling-meta-field" data-meta-name="docling_legacy__misc"><span class="docling-meta-field-label">docling_legacy__misc:</span> <span class="docling-meta-field-value">{'foo': 'bar'}</span></div></details>
|
| 179 |
+
</div>
|
| 180 |
+
</body>
|
| 181 |
+
</html>
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc.yaml.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis
|
| 2 |
+
|
| 3 |
+
Figure 1: Four examples of complex page layouts across different document categories
|
| 4 |
+
|
| 5 |
+
<!-- image -->
|
| 6 |
+
|
| 7 |
+
...
|
| 8 |
+
|
| 9 |
+
Bar chart
|
| 10 |
+
|
| 11 |
+
CC1=NNC(C2=CN3C=CN=C3C(CC3=CC(F)=CC(F)=C3)=N2)=N1
|
| 12 |
+
|
| 13 |
+
{'myanalysis': {'prediction': 'abc'}, 'something_else': {'text': 'aaa'}}
|
| 14 |
+
|
| 15 |
+
A description annotation for this table.
|
| 16 |
+
|
| 17 |
+
{'foo': 'bar'}
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc.yaml.min.dt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
<doctag><title><loc_42><loc_26><loc_406><loc_46>DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis</title><chart><loc_297><loc_125><loc_457><loc_499><bar_chart><smiles>CC1=NNC(C2=CN3C=CN=C3C(CC3=CC(F)=CC(F)=C3)=N2)=N1</smiles><caption><loc_210><loc_196><loc_245><loc_213>Figure 1: Four examples of complex page layouts across different document categories</caption></chart><otsl><loc_210><loc_196><loc_245><loc_213></otsl></doctag>
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc.yaml.vtt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
WEBVTT DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc_2.yaml
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
body:
|
| 2 |
+
children:
|
| 3 |
+
- $ref: '#/texts/1'
|
| 4 |
+
- $ref: '#/pictures/0'
|
| 5 |
+
- $ref: '#/texts/3'
|
| 6 |
+
- $ref: '#/tables/0'
|
| 7 |
+
content_layer: body
|
| 8 |
+
label: unspecified
|
| 9 |
+
name: _root_
|
| 10 |
+
self_ref: '#/body'
|
| 11 |
+
form_items: []
|
| 12 |
+
furniture:
|
| 13 |
+
children:
|
| 14 |
+
- $ref: '#/texts/0'
|
| 15 |
+
content_layer: body
|
| 16 |
+
label: unspecified
|
| 17 |
+
name: _root_
|
| 18 |
+
self_ref: '#/furniture'
|
| 19 |
+
groups: []
|
| 20 |
+
key_value_items: []
|
| 21 |
+
name: dummy_doc
|
| 22 |
+
origin:
|
| 23 |
+
binary_hash: 7954723514066505909
|
| 24 |
+
filename: dummy_doc.pdf
|
| 25 |
+
mimetype: application/pdf
|
| 26 |
+
pages:
|
| 27 |
+
'1':
|
| 28 |
+
image:
|
| 29 |
+
dpi: 144
|
| 30 |
+
mimetype: image/png
|
| 31 |
+
size:
|
| 32 |
+
height: 1166.0
|
| 33 |
+
width: 1536.0
|
| 34 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 35 |
+
page_no: 1
|
| 36 |
+
size:
|
| 37 |
+
height: 583.15
|
| 38 |
+
width: 768.23
|
| 39 |
+
pictures:
|
| 40 |
+
- annotations:
|
| 41 |
+
- kind: classification
|
| 42 |
+
predicted_classes:
|
| 43 |
+
- class_name: bar_chart
|
| 44 |
+
confidence: 0.789
|
| 45 |
+
provenance: model1
|
| 46 |
+
- kind: description
|
| 47 |
+
provenance: model2
|
| 48 |
+
text: '...'
|
| 49 |
+
- class_name: chemistry_molecular_structure
|
| 50 |
+
confidence: 0.9876
|
| 51 |
+
kind: molecule_data
|
| 52 |
+
provenance: model3-1.0.0
|
| 53 |
+
segmentation:
|
| 54 |
+
- - 0.0
|
| 55 |
+
- 0.0
|
| 56 |
+
- - 1.0
|
| 57 |
+
- 0.0
|
| 58 |
+
- - 0.0
|
| 59 |
+
- 1.0
|
| 60 |
+
- - 1.0
|
| 61 |
+
- 1.0
|
| 62 |
+
smi: CC1=NNC(C2=CN3C=CN=C3C(CC3=CC(F)=CC(F)=C3)=N2)=N1
|
| 63 |
+
- content:
|
| 64 |
+
myanalysis:
|
| 65 |
+
prediction: abc
|
| 66 |
+
something_else:
|
| 67 |
+
text: aaa
|
| 68 |
+
kind: misc
|
| 69 |
+
captions:
|
| 70 |
+
- $ref: '#/texts/3'
|
| 71 |
+
children:
|
| 72 |
+
- $ref: '#/texts/2'
|
| 73 |
+
content_layer: body
|
| 74 |
+
footnotes: []
|
| 75 |
+
image:
|
| 76 |
+
dpi: 72
|
| 77 |
+
mimetype: image/png
|
| 78 |
+
size:
|
| 79 |
+
height: 351.0
|
| 80 |
+
width: 231.0
|
| 81 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 82 |
+
label: picture
|
| 83 |
+
parent:
|
| 84 |
+
$ref: '#/body'
|
| 85 |
+
prov:
|
| 86 |
+
- bbox:
|
| 87 |
+
b: 583.15
|
| 88 |
+
coord_origin: TOPLEFT
|
| 89 |
+
l: 456.3
|
| 90 |
+
r: 702.5
|
| 91 |
+
t: 145.8
|
| 92 |
+
charspan:
|
| 93 |
+
- 0
|
| 94 |
+
- 288
|
| 95 |
+
page_no: 1
|
| 96 |
+
references: []
|
| 97 |
+
self_ref: '#/pictures/0'
|
| 98 |
+
- annotations: []
|
| 99 |
+
captions: []
|
| 100 |
+
children: []
|
| 101 |
+
content_layer: body
|
| 102 |
+
footnotes: []
|
| 103 |
+
image:
|
| 104 |
+
dpi: 72
|
| 105 |
+
mimetype: image/png
|
| 106 |
+
size:
|
| 107 |
+
height: 2.0
|
| 108 |
+
width: 2.0
|
| 109 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 110 |
+
label: picture
|
| 111 |
+
parent:
|
| 112 |
+
$ref: '#/body'
|
| 113 |
+
prov: []
|
| 114 |
+
references: []
|
| 115 |
+
self_ref: '#/pictures/1'
|
| 116 |
+
schema_name: DoclingDocument
|
| 117 |
+
tables:
|
| 118 |
+
- annotations:
|
| 119 |
+
- kind: description
|
| 120 |
+
provenance: model3
|
| 121 |
+
text: A description annotation for this table.
|
| 122 |
+
- content:
|
| 123 |
+
foo: bar
|
| 124 |
+
kind: misc
|
| 125 |
+
captions: []
|
| 126 |
+
children: []
|
| 127 |
+
content_layer: body
|
| 128 |
+
data:
|
| 129 |
+
grid: []
|
| 130 |
+
num_cols: 0
|
| 131 |
+
num_rows: 0
|
| 132 |
+
table_cells: []
|
| 133 |
+
footnotes: []
|
| 134 |
+
image:
|
| 135 |
+
dpi: 72
|
| 136 |
+
mimetype: image/png
|
| 137 |
+
size:
|
| 138 |
+
height: 351.123
|
| 139 |
+
width: 231.123
|
| 140 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 141 |
+
label: table
|
| 142 |
+
parent:
|
| 143 |
+
$ref: '#/body'
|
| 144 |
+
prov:
|
| 145 |
+
- bbox:
|
| 146 |
+
b: 334.432
|
| 147 |
+
coord_origin: BOTTOMLEFT
|
| 148 |
+
l: 323.012
|
| 149 |
+
r: 376.043
|
| 150 |
+
t: 354.321
|
| 151 |
+
charspan:
|
| 152 |
+
- 1
|
| 153 |
+
- 423
|
| 154 |
+
page_no: 1
|
| 155 |
+
references: []
|
| 156 |
+
self_ref: '#/tables/0'
|
| 157 |
+
texts:
|
| 158 |
+
- children: []
|
| 159 |
+
content_layer: body
|
| 160 |
+
label: page_header
|
| 161 |
+
orig: arXiv:2206.01062v1 [cs.CV] 2 Jun 2022
|
| 162 |
+
parent:
|
| 163 |
+
$ref: '#/furniture'
|
| 164 |
+
prov:
|
| 165 |
+
- bbox:
|
| 166 |
+
b: 476.234
|
| 167 |
+
coord_origin: TOPLEFT
|
| 168 |
+
l: 21.342
|
| 169 |
+
r: 35.215
|
| 170 |
+
t: 52.397
|
| 171 |
+
charspan:
|
| 172 |
+
- 1
|
| 173 |
+
- 423
|
| 174 |
+
page_no: 1
|
| 175 |
+
self_ref: '#/texts/0'
|
| 176 |
+
text: arXiv:2206.01062v1 [cs.CV] 2 Jun 2022
|
| 177 |
+
- children: []
|
| 178 |
+
content_layer: body
|
| 179 |
+
label: title
|
| 180 |
+
orig: 'DocLayNet: A Large Human-Annotated Dataset for
|
| 181 |
+
|
| 182 |
+
Document-Layout Analysis'
|
| 183 |
+
parent:
|
| 184 |
+
$ref: '#/body'
|
| 185 |
+
prov:
|
| 186 |
+
- bbox:
|
| 187 |
+
b: 53.4
|
| 188 |
+
coord_origin: TOPLEFT
|
| 189 |
+
l: 65.0
|
| 190 |
+
r: 623.2
|
| 191 |
+
t: 30.1
|
| 192 |
+
charspan:
|
| 193 |
+
- 1
|
| 194 |
+
- 423
|
| 195 |
+
page_no: 1
|
| 196 |
+
self_ref: '#/texts/1'
|
| 197 |
+
text: 'DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis'
|
| 198 |
+
- children: []
|
| 199 |
+
content_layer: body
|
| 200 |
+
label: section_header
|
| 201 |
+
level: 1
|
| 202 |
+
orig: OPERATION (cont.)
|
| 203 |
+
parent:
|
| 204 |
+
$ref: '#/pictures/0'
|
| 205 |
+
prov:
|
| 206 |
+
- bbox:
|
| 207 |
+
b: 334.4
|
| 208 |
+
coord_origin: BOTTOMLEFT
|
| 209 |
+
l: 323.0
|
| 210 |
+
r: 376.0
|
| 211 |
+
t: 354.3
|
| 212 |
+
charspan:
|
| 213 |
+
- 0
|
| 214 |
+
- 734
|
| 215 |
+
page_no: 1
|
| 216 |
+
self_ref: '#/texts/2'
|
| 217 |
+
text: OPERATION (cont.)
|
| 218 |
+
- children: []
|
| 219 |
+
content_layer: body
|
| 220 |
+
label: caption
|
| 221 |
+
orig: 'Figure 1: Four examples of complex page layouts across dif-
|
| 222 |
+
|
| 223 |
+
ferent document categories'
|
| 224 |
+
parent:
|
| 225 |
+
$ref: '#/body'
|
| 226 |
+
prov:
|
| 227 |
+
- bbox:
|
| 228 |
+
b: 334.4
|
| 229 |
+
coord_origin: BOTTOMLEFT
|
| 230 |
+
l: 323.0
|
| 231 |
+
r: 376.0
|
| 232 |
+
t: 354.3
|
| 233 |
+
charspan:
|
| 234 |
+
- 1
|
| 235 |
+
- 423
|
| 236 |
+
page_no: 1
|
| 237 |
+
self_ref: '#/texts/3'
|
| 238 |
+
text: 'Figure 1: Four examples of complex page layouts across different document
|
| 239 |
+
categories'
|
| 240 |
+
version: 1.5.0
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc_2_prec.yaml
ADDED
|
@@ -0,0 +1,275 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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- $ref: '#/texts/3'
|
| 6 |
+
- $ref: '#/tables/0'
|
| 7 |
+
content_layer: body
|
| 8 |
+
label: unspecified
|
| 9 |
+
name: _root_
|
| 10 |
+
self_ref: '#/body'
|
| 11 |
+
form_items: []
|
| 12 |
+
furniture:
|
| 13 |
+
children:
|
| 14 |
+
- $ref: '#/texts/0'
|
| 15 |
+
content_layer: body
|
| 16 |
+
label: unspecified
|
| 17 |
+
name: _root_
|
| 18 |
+
self_ref: '#/furniture'
|
| 19 |
+
groups: []
|
| 20 |
+
key_value_items: []
|
| 21 |
+
name: dummy_doc
|
| 22 |
+
origin:
|
| 23 |
+
binary_hash: 7954723514066505909
|
| 24 |
+
filename: dummy_doc.pdf
|
| 25 |
+
mimetype: application/pdf
|
| 26 |
+
pages:
|
| 27 |
+
'1':
|
| 28 |
+
image:
|
| 29 |
+
dpi: 144
|
| 30 |
+
mimetype: image/png
|
| 31 |
+
size:
|
| 32 |
+
height: 1166.0
|
| 33 |
+
width: 1536.0
|
| 34 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 35 |
+
page_no: 1
|
| 36 |
+
size:
|
| 37 |
+
height: 583.15
|
| 38 |
+
width: 768.23
|
| 39 |
+
pictures:
|
| 40 |
+
- annotations:
|
| 41 |
+
- kind: classification
|
| 42 |
+
predicted_classes:
|
| 43 |
+
- class_name: bar_chart
|
| 44 |
+
confidence: 0.8
|
| 45 |
+
provenance: model1
|
| 46 |
+
- kind: description
|
| 47 |
+
provenance: model2
|
| 48 |
+
text: '...'
|
| 49 |
+
- class_name: chemistry_molecular_structure
|
| 50 |
+
confidence: 1.0
|
| 51 |
+
kind: molecule_data
|
| 52 |
+
provenance: model3-1.0.0
|
| 53 |
+
segmentation:
|
| 54 |
+
- - 0.0
|
| 55 |
+
- 0.0
|
| 56 |
+
- - 1.0
|
| 57 |
+
- 0.0
|
| 58 |
+
- - 0.0
|
| 59 |
+
- 1.0
|
| 60 |
+
- - 1.0
|
| 61 |
+
- 1.0
|
| 62 |
+
smi: CC1=NNC(C2=CN3C=CN=C3C(CC3=CC(F)=CC(F)=C3)=N2)=N1
|
| 63 |
+
- content:
|
| 64 |
+
myanalysis:
|
| 65 |
+
prediction: abc
|
| 66 |
+
something_else:
|
| 67 |
+
text: aaa
|
| 68 |
+
kind: misc
|
| 69 |
+
captions:
|
| 70 |
+
- $ref: '#/texts/3'
|
| 71 |
+
children:
|
| 72 |
+
- $ref: '#/texts/2'
|
| 73 |
+
content_layer: body
|
| 74 |
+
footnotes: []
|
| 75 |
+
image:
|
| 76 |
+
dpi: 72
|
| 77 |
+
mimetype: image/png
|
| 78 |
+
size:
|
| 79 |
+
height: 351.0
|
| 80 |
+
width: 231.0
|
| 81 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 82 |
+
label: picture
|
| 83 |
+
meta:
|
| 84 |
+
classification:
|
| 85 |
+
predictions:
|
| 86 |
+
- class_name: bar_chart
|
| 87 |
+
confidence: 0.8
|
| 88 |
+
created_by: model1
|
| 89 |
+
description:
|
| 90 |
+
created_by: model2
|
| 91 |
+
text: '...'
|
| 92 |
+
docling_legacy__misc:
|
| 93 |
+
myanalysis:
|
| 94 |
+
prediction: abc
|
| 95 |
+
something_else:
|
| 96 |
+
text: aaa
|
| 97 |
+
molecule:
|
| 98 |
+
confidence: 1.0
|
| 99 |
+
created_by: model3-1.0.0
|
| 100 |
+
docling_legacy__class_name: chemistry_molecular_structure
|
| 101 |
+
docling_legacy__segmentation:
|
| 102 |
+
- - 0.0
|
| 103 |
+
- 0.0
|
| 104 |
+
- - 1.0
|
| 105 |
+
- 0.0
|
| 106 |
+
- - 0.0
|
| 107 |
+
- 1.0
|
| 108 |
+
- - 1.0
|
| 109 |
+
- 1.0
|
| 110 |
+
smi: CC1=NNC(C2=CN3C=CN=C3C(CC3=CC(F)=CC(F)=C3)=N2)=N1
|
| 111 |
+
parent:
|
| 112 |
+
$ref: '#/body'
|
| 113 |
+
prov:
|
| 114 |
+
- bbox:
|
| 115 |
+
b: 583.15
|
| 116 |
+
coord_origin: TOPLEFT
|
| 117 |
+
l: 456.3
|
| 118 |
+
r: 702.5
|
| 119 |
+
t: 145.8
|
| 120 |
+
charspan:
|
| 121 |
+
- 0
|
| 122 |
+
- 288
|
| 123 |
+
page_no: 1
|
| 124 |
+
references: []
|
| 125 |
+
self_ref: '#/pictures/0'
|
| 126 |
+
- annotations: []
|
| 127 |
+
captions: []
|
| 128 |
+
children: []
|
| 129 |
+
content_layer: body
|
| 130 |
+
footnotes: []
|
| 131 |
+
image:
|
| 132 |
+
dpi: 72
|
| 133 |
+
mimetype: image/png
|
| 134 |
+
size:
|
| 135 |
+
height: 2.0
|
| 136 |
+
width: 2.0
|
| 137 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 138 |
+
label: picture
|
| 139 |
+
parent:
|
| 140 |
+
$ref: '#/body'
|
| 141 |
+
prov: []
|
| 142 |
+
references: []
|
| 143 |
+
self_ref: '#/pictures/1'
|
| 144 |
+
schema_name: DoclingDocument
|
| 145 |
+
tables:
|
| 146 |
+
- annotations:
|
| 147 |
+
- kind: description
|
| 148 |
+
provenance: model3
|
| 149 |
+
text: A description annotation for this table.
|
| 150 |
+
- content:
|
| 151 |
+
foo: bar
|
| 152 |
+
kind: misc
|
| 153 |
+
captions: []
|
| 154 |
+
children: []
|
| 155 |
+
content_layer: body
|
| 156 |
+
data:
|
| 157 |
+
grid: []
|
| 158 |
+
num_cols: 0
|
| 159 |
+
num_rows: 0
|
| 160 |
+
orientation: rot_0
|
| 161 |
+
table_cells: []
|
| 162 |
+
footnotes: []
|
| 163 |
+
image:
|
| 164 |
+
dpi: 72
|
| 165 |
+
mimetype: image/png
|
| 166 |
+
size:
|
| 167 |
+
height: 351.12
|
| 168 |
+
width: 231.12
|
| 169 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 170 |
+
label: table
|
| 171 |
+
meta:
|
| 172 |
+
description:
|
| 173 |
+
created_by: model3
|
| 174 |
+
text: A description annotation for this table.
|
| 175 |
+
docling_legacy__misc:
|
| 176 |
+
foo: bar
|
| 177 |
+
parent:
|
| 178 |
+
$ref: '#/body'
|
| 179 |
+
prov:
|
| 180 |
+
- bbox:
|
| 181 |
+
b: 334.43
|
| 182 |
+
coord_origin: BOTTOMLEFT
|
| 183 |
+
l: 323.01
|
| 184 |
+
r: 376.04
|
| 185 |
+
t: 354.32
|
| 186 |
+
charspan:
|
| 187 |
+
- 1
|
| 188 |
+
- 423
|
| 189 |
+
page_no: 1
|
| 190 |
+
references: []
|
| 191 |
+
self_ref: '#/tables/0'
|
| 192 |
+
texts:
|
| 193 |
+
- children: []
|
| 194 |
+
content_layer: body
|
| 195 |
+
label: page_header
|
| 196 |
+
orig: arXiv:2206.01062v1 [cs.CV] 2 Jun 2022
|
| 197 |
+
parent:
|
| 198 |
+
$ref: '#/furniture'
|
| 199 |
+
prov:
|
| 200 |
+
- bbox:
|
| 201 |
+
b: 476.23
|
| 202 |
+
coord_origin: TOPLEFT
|
| 203 |
+
l: 21.34
|
| 204 |
+
r: 35.22
|
| 205 |
+
t: 52.4
|
| 206 |
+
charspan:
|
| 207 |
+
- 1
|
| 208 |
+
- 423
|
| 209 |
+
page_no: 1
|
| 210 |
+
self_ref: '#/texts/0'
|
| 211 |
+
text: arXiv:2206.01062v1 [cs.CV] 2 Jun 2022
|
| 212 |
+
- children: []
|
| 213 |
+
content_layer: body
|
| 214 |
+
label: title
|
| 215 |
+
orig: 'DocLayNet: A Large Human-Annotated Dataset for
|
| 216 |
+
|
| 217 |
+
Document-Layout Analysis'
|
| 218 |
+
parent:
|
| 219 |
+
$ref: '#/body'
|
| 220 |
+
prov:
|
| 221 |
+
- bbox:
|
| 222 |
+
b: 53.4
|
| 223 |
+
coord_origin: TOPLEFT
|
| 224 |
+
l: 65.0
|
| 225 |
+
r: 623.2
|
| 226 |
+
t: 30.1
|
| 227 |
+
charspan:
|
| 228 |
+
- 1
|
| 229 |
+
- 423
|
| 230 |
+
page_no: 1
|
| 231 |
+
self_ref: '#/texts/1'
|
| 232 |
+
text: 'DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis'
|
| 233 |
+
- children: []
|
| 234 |
+
content_layer: body
|
| 235 |
+
label: section_header
|
| 236 |
+
level: 1
|
| 237 |
+
orig: OPERATION (cont.)
|
| 238 |
+
parent:
|
| 239 |
+
$ref: '#/pictures/0'
|
| 240 |
+
prov:
|
| 241 |
+
- bbox:
|
| 242 |
+
b: 334.4
|
| 243 |
+
coord_origin: BOTTOMLEFT
|
| 244 |
+
l: 323.0
|
| 245 |
+
r: 376.0
|
| 246 |
+
t: 354.3
|
| 247 |
+
charspan:
|
| 248 |
+
- 0
|
| 249 |
+
- 734
|
| 250 |
+
page_no: 1
|
| 251 |
+
self_ref: '#/texts/2'
|
| 252 |
+
text: OPERATION (cont.)
|
| 253 |
+
- children: []
|
| 254 |
+
content_layer: body
|
| 255 |
+
label: caption
|
| 256 |
+
orig: 'Figure 1: Four examples of complex page layouts across dif-
|
| 257 |
+
|
| 258 |
+
ferent document categories'
|
| 259 |
+
parent:
|
| 260 |
+
$ref: '#/body'
|
| 261 |
+
prov:
|
| 262 |
+
- bbox:
|
| 263 |
+
b: 334.4
|
| 264 |
+
coord_origin: BOTTOMLEFT
|
| 265 |
+
l: 323.0
|
| 266 |
+
r: 376.0
|
| 267 |
+
t: 354.3
|
| 268 |
+
charspan:
|
| 269 |
+
- 1
|
| 270 |
+
- 423
|
| 271 |
+
page_no: 1
|
| 272 |
+
self_ref: '#/texts/3'
|
| 273 |
+
text: 'Figure 1: Four examples of complex page layouts across different document
|
| 274 |
+
categories'
|
| 275 |
+
version: 1.10.0
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc_mark_meta.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis
|
| 2 |
+
|
| 3 |
+
[Description] ...
|
| 4 |
+
|
| 5 |
+
[Classification] Bar chart
|
| 6 |
+
|
| 7 |
+
[Molecule] CC1=NNC(C2=CN3C=CN=C3C(CC3=CC(F)=CC(F)=C3)=N2)=N1
|
| 8 |
+
|
| 9 |
+
[Docling Legacy Misc] {'myanalysis': {'prediction': 'abc'}, 'something_else': {'text': 'aaa'}}
|
| 10 |
+
|
| 11 |
+
Figure 1: Four examples of complex page layouts across different document categories
|
| 12 |
+
|
| 13 |
+
<!-- image -->
|
| 14 |
+
|
| 15 |
+
[Description] A description annotation for this table.
|
| 16 |
+
|
| 17 |
+
[Docling Legacy Misc] {'foo': 'bar'}
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc_with_meta.gt.dclg.xml
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<doclang>
|
| 2 |
+
<heading>
|
| 3 |
+
<location value="43"/>
|
| 4 |
+
<location value="26"/>
|
| 5 |
+
<location value="415"/>
|
| 6 |
+
<location value="47"/>
|
| 7 |
+
<summary>This is a title.</summary>
|
| 8 |
+
<custom>
|
| 9 |
+
<my_corp__foo>More stuff here.</my_corp__foo>
|
| 10 |
+
</custom>
|
| 11 |
+
DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis
|
| 12 |
+
</heading>
|
| 13 |
+
<picture>
|
| 14 |
+
<label value="bar_chart"/>
|
| 15 |
+
<location value="304"/>
|
| 16 |
+
<location value="128"/>
|
| 17 |
+
<location value="468"/>
|
| 18 |
+
<location value="511"/>
|
| 19 |
+
<caption>
|
| 20 |
+
<location value="215"/>
|
| 21 |
+
<location value="201"/>
|
| 22 |
+
<location value="251"/>
|
| 23 |
+
<location value="218"/>
|
| 24 |
+
Figure 1: Four examples of complex page layouts across different document categories
|
| 25 |
+
</caption>
|
| 26 |
+
<description>...</description>
|
| 27 |
+
<custom>
|
| 28 |
+
<docling__smiles>CC1=NNC(C2=CN3C=CN=C3C(CC3=CC(F)=CC(F)=C3)=N2)=N1</docling__smiles>
|
| 29 |
+
<docling_legacy__misc>
|
| 30 |
+
<myanalysis>
|
| 31 |
+
<prediction>abc</prediction>
|
| 32 |
+
</myanalysis>
|
| 33 |
+
<something_else>
|
| 34 |
+
<text>aaa</text>
|
| 35 |
+
</something_else>
|
| 36 |
+
</docling_legacy__misc>
|
| 37 |
+
</custom>
|
| 38 |
+
<src uri="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII="/>
|
| 39 |
+
<heading level="2">
|
| 40 |
+
<location value="215"/>
|
| 41 |
+
<location value="201"/>
|
| 42 |
+
<location value="251"/>
|
| 43 |
+
<location value="218"/>
|
| 44 |
+
<summary>This is a section header.</summary>
|
| 45 |
+
OPERATION (cont.)
|
| 46 |
+
</heading>
|
| 47 |
+
</picture>
|
| 48 |
+
<table>
|
| 49 |
+
<location value="215"/>
|
| 50 |
+
<location value="201"/>
|
| 51 |
+
<location value="251"/>
|
| 52 |
+
<location value="218"/>
|
| 53 |
+
<description>A description annotation for this table.</description>
|
| 54 |
+
</table>
|
| 55 |
+
</doclang>
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc_with_meta.gt.dt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<doctag><title><loc_42><loc_26><loc_406><loc_46>DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis</title>
|
| 2 |
+
<chart><loc_297><loc_125><loc_457><loc_499><bar_chart><smiles>CC1=NNC(C2=CN3C=CN=C3C(CC3=CC(F)=CC(F)=C3)=N2)=N1</smiles><caption><loc_210><loc_196><loc_245><loc_213>Figure 1: Four examples of complex page layouts across different document categories</caption></chart>
|
| 3 |
+
<otsl><loc_210><loc_196><loc_245><loc_213></otsl>
|
| 4 |
+
</doctag>
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc_with_meta.yaml
ADDED
|
@@ -0,0 +1,255 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
body:
|
| 2 |
+
children:
|
| 3 |
+
- $ref: '#/texts/1'
|
| 4 |
+
- $ref: '#/pictures/0'
|
| 5 |
+
- $ref: '#/texts/3'
|
| 6 |
+
- $ref: '#/tables/0'
|
| 7 |
+
content_layer: body
|
| 8 |
+
label: unspecified
|
| 9 |
+
meta:
|
| 10 |
+
summary:
|
| 11 |
+
confidence: 0.98
|
| 12 |
+
text: This is a document-level summary describing the entire document.
|
| 13 |
+
my_corp__doc_category: technical_report
|
| 14 |
+
my_corp__doc_version: '1.0'
|
| 15 |
+
name: _root_
|
| 16 |
+
self_ref: '#/body'
|
| 17 |
+
form_items: []
|
| 18 |
+
furniture:
|
| 19 |
+
children:
|
| 20 |
+
- $ref: '#/texts/0'
|
| 21 |
+
content_layer: body
|
| 22 |
+
label: unspecified
|
| 23 |
+
name: _root_
|
| 24 |
+
self_ref: '#/furniture'
|
| 25 |
+
groups: []
|
| 26 |
+
key_value_items: []
|
| 27 |
+
name: dummy_doc
|
| 28 |
+
origin:
|
| 29 |
+
binary_hash: 7954723514066505909
|
| 30 |
+
filename: dummy_doc.pdf
|
| 31 |
+
mimetype: application/pdf
|
| 32 |
+
pages:
|
| 33 |
+
'1':
|
| 34 |
+
image:
|
| 35 |
+
dpi: 144
|
| 36 |
+
mimetype: image/png
|
| 37 |
+
size:
|
| 38 |
+
height: 1166.0
|
| 39 |
+
width: 1536.0
|
| 40 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 41 |
+
page_no: 1
|
| 42 |
+
size:
|
| 43 |
+
height: 583.15
|
| 44 |
+
width: 768.23
|
| 45 |
+
pictures:
|
| 46 |
+
- annotations:
|
| 47 |
+
- kind: classification
|
| 48 |
+
predicted_classes:
|
| 49 |
+
- class_name: bar_chart
|
| 50 |
+
confidence: 0.78
|
| 51 |
+
provenance: model1
|
| 52 |
+
- kind: description
|
| 53 |
+
provenance: model2
|
| 54 |
+
text: '...'
|
| 55 |
+
- class_name: chemistry_molecular_structure
|
| 56 |
+
confidence: 0.98
|
| 57 |
+
kind: molecule_data
|
| 58 |
+
provenance: model3-1.0.0
|
| 59 |
+
segmentation:
|
| 60 |
+
- - 0.0
|
| 61 |
+
- 0.0
|
| 62 |
+
- - 1.0
|
| 63 |
+
- 0.0
|
| 64 |
+
- - 0.0
|
| 65 |
+
- 1.0
|
| 66 |
+
- - 1.0
|
| 67 |
+
- 1.0
|
| 68 |
+
smi: CC1=NNC(C2=CN3C=CN=C3C(CC3=CC(F)=CC(F)=C3)=N2)=N1
|
| 69 |
+
- content:
|
| 70 |
+
myanalysis:
|
| 71 |
+
prediction: abc
|
| 72 |
+
something_else:
|
| 73 |
+
text: aaa
|
| 74 |
+
kind: misc
|
| 75 |
+
captions:
|
| 76 |
+
- $ref: '#/texts/3'
|
| 77 |
+
children:
|
| 78 |
+
- $ref: '#/texts/2'
|
| 79 |
+
content_layer: body
|
| 80 |
+
footnotes: []
|
| 81 |
+
image:
|
| 82 |
+
dpi: 72
|
| 83 |
+
mimetype: image/png
|
| 84 |
+
size:
|
| 85 |
+
height: 351.0
|
| 86 |
+
width: 231.0
|
| 87 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 88 |
+
label: picture
|
| 89 |
+
parent:
|
| 90 |
+
$ref: '#/body'
|
| 91 |
+
prov:
|
| 92 |
+
- bbox:
|
| 93 |
+
b: 582.4
|
| 94 |
+
coord_origin: TOPLEFT
|
| 95 |
+
l: 456.3
|
| 96 |
+
r: 702.5
|
| 97 |
+
t: 145.8
|
| 98 |
+
charspan:
|
| 99 |
+
- 0
|
| 100 |
+
- 288
|
| 101 |
+
page_no: 1
|
| 102 |
+
references: []
|
| 103 |
+
self_ref: '#/pictures/0'
|
| 104 |
+
- annotations: []
|
| 105 |
+
captions: []
|
| 106 |
+
children: []
|
| 107 |
+
content_layer: body
|
| 108 |
+
footnotes: []
|
| 109 |
+
image:
|
| 110 |
+
dpi: 72
|
| 111 |
+
mimetype: image/png
|
| 112 |
+
size:
|
| 113 |
+
height: 2.0
|
| 114 |
+
width: 2.0
|
| 115 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 116 |
+
label: picture
|
| 117 |
+
parent:
|
| 118 |
+
$ref: '#/body'
|
| 119 |
+
prov: []
|
| 120 |
+
references: []
|
| 121 |
+
self_ref: '#/pictures/1'
|
| 122 |
+
schema_name: DoclingDocument
|
| 123 |
+
tables:
|
| 124 |
+
- annotations:
|
| 125 |
+
- kind: description
|
| 126 |
+
provenance: model3
|
| 127 |
+
text: A description annotation for this table.
|
| 128 |
+
- content:
|
| 129 |
+
foo: bar
|
| 130 |
+
kind: misc
|
| 131 |
+
captions: []
|
| 132 |
+
children: []
|
| 133 |
+
content_layer: body
|
| 134 |
+
data:
|
| 135 |
+
grid: []
|
| 136 |
+
num_cols: 0
|
| 137 |
+
num_rows: 0
|
| 138 |
+
table_cells: []
|
| 139 |
+
footnotes: []
|
| 140 |
+
image:
|
| 141 |
+
dpi: 72
|
| 142 |
+
mimetype: image/png
|
| 143 |
+
size:
|
| 144 |
+
height: 351.0
|
| 145 |
+
width: 231.0
|
| 146 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 147 |
+
label: table
|
| 148 |
+
parent:
|
| 149 |
+
$ref: '#/body'
|
| 150 |
+
prov:
|
| 151 |
+
- bbox:
|
| 152 |
+
b: 334.4
|
| 153 |
+
coord_origin: BOTTOMLEFT
|
| 154 |
+
l: 323.0
|
| 155 |
+
r: 376.0
|
| 156 |
+
t: 354.3
|
| 157 |
+
charspan:
|
| 158 |
+
- 1
|
| 159 |
+
- 423
|
| 160 |
+
page_no: 1
|
| 161 |
+
references: []
|
| 162 |
+
self_ref: '#/tables/0'
|
| 163 |
+
texts:
|
| 164 |
+
- children: []
|
| 165 |
+
content_layer: body
|
| 166 |
+
label: page_header
|
| 167 |
+
orig: arXiv:2206.01062v1 [cs.CV] 2 Jun 2022
|
| 168 |
+
parent:
|
| 169 |
+
$ref: '#/furniture'
|
| 170 |
+
prov:
|
| 171 |
+
- bbox:
|
| 172 |
+
b: 476.2
|
| 173 |
+
coord_origin: TOPLEFT
|
| 174 |
+
l: 21.3
|
| 175 |
+
r: 35.2
|
| 176 |
+
t: 52.3
|
| 177 |
+
charspan:
|
| 178 |
+
- 1
|
| 179 |
+
- 423
|
| 180 |
+
page_no: 1
|
| 181 |
+
self_ref: '#/texts/0'
|
| 182 |
+
text: arXiv:2206.01062v1 [cs.CV] 2 Jun 2022
|
| 183 |
+
- children: []
|
| 184 |
+
content_layer: body
|
| 185 |
+
label: title
|
| 186 |
+
meta:
|
| 187 |
+
summary:
|
| 188 |
+
confidence: 0.95
|
| 189 |
+
docling_legacy__provenance: model1
|
| 190 |
+
text: This is a title.
|
| 191 |
+
my_corp__foo: More stuff here.
|
| 192 |
+
orig: 'DocLayNet: A Large Human-Annotated Dataset for
|
| 193 |
+
|
| 194 |
+
Document-Layout Analysis'
|
| 195 |
+
parent:
|
| 196 |
+
$ref: '#/body'
|
| 197 |
+
prov:
|
| 198 |
+
- bbox:
|
| 199 |
+
b: 53.4
|
| 200 |
+
coord_origin: TOPLEFT
|
| 201 |
+
l: 65.0
|
| 202 |
+
r: 623.2
|
| 203 |
+
t: 30.1
|
| 204 |
+
charspan:
|
| 205 |
+
- 1
|
| 206 |
+
- 423
|
| 207 |
+
page_no: 1
|
| 208 |
+
self_ref: '#/texts/1'
|
| 209 |
+
text: 'DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis'
|
| 210 |
+
- children: []
|
| 211 |
+
content_layer: body
|
| 212 |
+
label: section_header
|
| 213 |
+
level: 1
|
| 214 |
+
meta:
|
| 215 |
+
summary:
|
| 216 |
+
text: This is a section header.
|
| 217 |
+
orig: OPERATION (cont.)
|
| 218 |
+
parent:
|
| 219 |
+
$ref: '#/pictures/0'
|
| 220 |
+
prov:
|
| 221 |
+
- bbox:
|
| 222 |
+
b: 334.4
|
| 223 |
+
coord_origin: BOTTOMLEFT
|
| 224 |
+
l: 323.0
|
| 225 |
+
r: 376.0
|
| 226 |
+
t: 354.3
|
| 227 |
+
charspan:
|
| 228 |
+
- 0
|
| 229 |
+
- 734
|
| 230 |
+
page_no: 1
|
| 231 |
+
self_ref: '#/texts/2'
|
| 232 |
+
text: OPERATION (cont.)
|
| 233 |
+
- children: []
|
| 234 |
+
content_layer: body
|
| 235 |
+
label: caption
|
| 236 |
+
orig: 'Figure 1: Four examples of complex page layouts across dif-
|
| 237 |
+
|
| 238 |
+
ferent document categories'
|
| 239 |
+
parent:
|
| 240 |
+
$ref: '#/body'
|
| 241 |
+
prov:
|
| 242 |
+
- bbox:
|
| 243 |
+
b: 334.4
|
| 244 |
+
coord_origin: BOTTOMLEFT
|
| 245 |
+
l: 323.0
|
| 246 |
+
r: 376.0
|
| 247 |
+
t: 354.3
|
| 248 |
+
charspan:
|
| 249 |
+
- 1
|
| 250 |
+
- 423
|
| 251 |
+
page_no: 1
|
| 252 |
+
self_ref: '#/texts/3'
|
| 253 |
+
text: 'Figure 1: Four examples of complex page layouts across different document
|
| 254 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
body:
|
| 2 |
+
children:
|
| 3 |
+
- $ref: '#/texts/1'
|
| 4 |
+
- $ref: '#/pictures/0'
|
| 5 |
+
- $ref: '#/texts/3'
|
| 6 |
+
- $ref: '#/tables/0'
|
| 7 |
+
content_layer: body
|
| 8 |
+
label: unspecified
|
| 9 |
+
name: _root_
|
| 10 |
+
self_ref: '#/body'
|
| 11 |
+
form_items: []
|
| 12 |
+
furniture:
|
| 13 |
+
children:
|
| 14 |
+
- $ref: '#/texts/0'
|
| 15 |
+
content_layer: body
|
| 16 |
+
label: unspecified
|
| 17 |
+
name: _root_
|
| 18 |
+
self_ref: '#/furniture'
|
| 19 |
+
groups: []
|
| 20 |
+
key_value_items: []
|
| 21 |
+
name: dummy_doc
|
| 22 |
+
origin:
|
| 23 |
+
binary_hash: 7954723514066505909
|
| 24 |
+
filename: dummy_doc.pdf
|
| 25 |
+
mimetype: application/pdf
|
| 26 |
+
pages:
|
| 27 |
+
'1':
|
| 28 |
+
image:
|
| 29 |
+
dpi: 144
|
| 30 |
+
mimetype: image/png
|
| 31 |
+
size:
|
| 32 |
+
height: 1166.0
|
| 33 |
+
width: 1536.0
|
| 34 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 35 |
+
page_no: 1
|
| 36 |
+
size:
|
| 37 |
+
height: 583.15
|
| 38 |
+
width: 768.23
|
| 39 |
+
pictures:
|
| 40 |
+
- annotations:
|
| 41 |
+
- kind: classification
|
| 42 |
+
predicted_classes:
|
| 43 |
+
- class_name: bar_chart
|
| 44 |
+
confidence: 0.78
|
| 45 |
+
provenance: model1
|
| 46 |
+
- kind: description
|
| 47 |
+
provenance: model2
|
| 48 |
+
text: '...'
|
| 49 |
+
- class_name: chemistry_molecular_structure
|
| 50 |
+
confidence: 0.98
|
| 51 |
+
kind: molecule_data
|
| 52 |
+
provenance: model3-1.0.0
|
| 53 |
+
segmentation:
|
| 54 |
+
- - 0.0
|
| 55 |
+
- 0.0
|
| 56 |
+
- - 1.0
|
| 57 |
+
- 0.0
|
| 58 |
+
- - 0.0
|
| 59 |
+
- 1.0
|
| 60 |
+
- - 1.0
|
| 61 |
+
- 1.0
|
| 62 |
+
smi: CC1=NNC(C2=CN3C=CN=C3C(CC3=CC(F)=CC(F)=C3)=N2)=N1
|
| 63 |
+
- content:
|
| 64 |
+
myanalysis:
|
| 65 |
+
prediction: abc
|
| 66 |
+
something_else:
|
| 67 |
+
text: aaa
|
| 68 |
+
kind: misc
|
| 69 |
+
captions:
|
| 70 |
+
- $ref: '#/texts/3'
|
| 71 |
+
children:
|
| 72 |
+
- $ref: '#/texts/2'
|
| 73 |
+
content_layer: body
|
| 74 |
+
footnotes: []
|
| 75 |
+
image:
|
| 76 |
+
dpi: 72
|
| 77 |
+
mimetype: image/png
|
| 78 |
+
size:
|
| 79 |
+
height: 351.0
|
| 80 |
+
width: 231.0
|
| 81 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 82 |
+
label: picture
|
| 83 |
+
parent:
|
| 84 |
+
$ref: '#/body'
|
| 85 |
+
prov:
|
| 86 |
+
- bbox:
|
| 87 |
+
b: 623.4
|
| 88 |
+
coord_origin: TOPLEFT
|
| 89 |
+
l: 456.3
|
| 90 |
+
r: 702.5
|
| 91 |
+
t: 145.8
|
| 92 |
+
charspan:
|
| 93 |
+
- 0
|
| 94 |
+
- 288
|
| 95 |
+
page_no: 1
|
| 96 |
+
references: []
|
| 97 |
+
self_ref: '#/pictures/0'
|
| 98 |
+
meta:
|
| 99 |
+
classification:
|
| 100 |
+
predictions:
|
| 101 |
+
- class_name: bar_chart
|
| 102 |
+
confidence: 0.42
|
| 103 |
+
created_by: model1
|
| 104 |
+
- annotations: []
|
| 105 |
+
captions: []
|
| 106 |
+
children: []
|
| 107 |
+
content_layer: body
|
| 108 |
+
footnotes: []
|
| 109 |
+
image:
|
| 110 |
+
dpi: 72
|
| 111 |
+
mimetype: image/png
|
| 112 |
+
size:
|
| 113 |
+
height: 2.0
|
| 114 |
+
width: 2.0
|
| 115 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 116 |
+
label: picture
|
| 117 |
+
parent:
|
| 118 |
+
$ref: '#/body'
|
| 119 |
+
prov: []
|
| 120 |
+
references: []
|
| 121 |
+
self_ref: '#/pictures/1'
|
| 122 |
+
schema_name: DoclingDocument
|
| 123 |
+
tables:
|
| 124 |
+
- annotations:
|
| 125 |
+
- kind: description
|
| 126 |
+
provenance: model3
|
| 127 |
+
text: A description annotation for this table.
|
| 128 |
+
- content:
|
| 129 |
+
foo: bar
|
| 130 |
+
kind: misc
|
| 131 |
+
captions: []
|
| 132 |
+
children: []
|
| 133 |
+
content_layer: body
|
| 134 |
+
data:
|
| 135 |
+
grid: []
|
| 136 |
+
num_cols: 0
|
| 137 |
+
num_rows: 0
|
| 138 |
+
table_cells: []
|
| 139 |
+
footnotes: []
|
| 140 |
+
image:
|
| 141 |
+
dpi: 72
|
| 142 |
+
mimetype: image/png
|
| 143 |
+
size:
|
| 144 |
+
height: 351.0
|
| 145 |
+
width: 231.0
|
| 146 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 147 |
+
label: table
|
| 148 |
+
parent:
|
| 149 |
+
$ref: '#/body'
|
| 150 |
+
prov:
|
| 151 |
+
- bbox:
|
| 152 |
+
b: 334.4
|
| 153 |
+
coord_origin: BOTTOMLEFT
|
| 154 |
+
l: 323.0
|
| 155 |
+
r: 376.0
|
| 156 |
+
t: 354.3
|
| 157 |
+
charspan:
|
| 158 |
+
- 1
|
| 159 |
+
- 423
|
| 160 |
+
page_no: 1
|
| 161 |
+
references: []
|
| 162 |
+
self_ref: '#/tables/0'
|
| 163 |
+
texts:
|
| 164 |
+
- children: []
|
| 165 |
+
content_layer: body
|
| 166 |
+
label: page_header
|
| 167 |
+
orig: arXiv:2206.01062v1 [cs.CV] 2 Jun 2022
|
| 168 |
+
parent:
|
| 169 |
+
$ref: '#/furniture'
|
| 170 |
+
prov:
|
| 171 |
+
- bbox:
|
| 172 |
+
b: 476.2
|
| 173 |
+
coord_origin: TOPLEFT
|
| 174 |
+
l: 21.3
|
| 175 |
+
r: 35.2
|
| 176 |
+
t: 52.3
|
| 177 |
+
charspan:
|
| 178 |
+
- 1
|
| 179 |
+
- 423
|
| 180 |
+
page_no: 1
|
| 181 |
+
self_ref: '#/texts/0'
|
| 182 |
+
text: arXiv:2206.01062v1 [cs.CV] 2 Jun 2022
|
| 183 |
+
- children: []
|
| 184 |
+
content_layer: body
|
| 185 |
+
label: title
|
| 186 |
+
meta:
|
| 187 |
+
summary:
|
| 188 |
+
confidence: 0.95
|
| 189 |
+
docling_legacy__provenance: model1
|
| 190 |
+
text: This is a title.
|
| 191 |
+
my_corp__foo: More stuff here.
|
| 192 |
+
orig: 'DocLayNet: A Large Human-Annotated Dataset for
|
| 193 |
+
|
| 194 |
+
Document-Layout Analysis'
|
| 195 |
+
parent:
|
| 196 |
+
$ref: '#/body'
|
| 197 |
+
prov:
|
| 198 |
+
- bbox:
|
| 199 |
+
b: 53.4
|
| 200 |
+
coord_origin: TOPLEFT
|
| 201 |
+
l: 65.0
|
| 202 |
+
r: 623.2
|
| 203 |
+
t: 30.1
|
| 204 |
+
charspan:
|
| 205 |
+
- 1
|
| 206 |
+
- 423
|
| 207 |
+
page_no: 1
|
| 208 |
+
self_ref: '#/texts/1'
|
| 209 |
+
text: 'DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis'
|
| 210 |
+
- children: []
|
| 211 |
+
content_layer: body
|
| 212 |
+
label: section_header
|
| 213 |
+
level: 1
|
| 214 |
+
meta:
|
| 215 |
+
summary:
|
| 216 |
+
text: This is a section header.
|
| 217 |
+
orig: OPERATION (cont.)
|
| 218 |
+
parent:
|
| 219 |
+
$ref: '#/pictures/0'
|
| 220 |
+
prov:
|
| 221 |
+
- bbox:
|
| 222 |
+
b: 334.4
|
| 223 |
+
coord_origin: BOTTOMLEFT
|
| 224 |
+
l: 323.0
|
| 225 |
+
r: 376.0
|
| 226 |
+
t: 354.3
|
| 227 |
+
charspan:
|
| 228 |
+
- 0
|
| 229 |
+
- 734
|
| 230 |
+
page_no: 1
|
| 231 |
+
self_ref: '#/texts/2'
|
| 232 |
+
text: OPERATION (cont.)
|
| 233 |
+
- children: []
|
| 234 |
+
content_layer: body
|
| 235 |
+
label: caption
|
| 236 |
+
orig: 'Figure 1: Four examples of complex page layouts across dif-
|
| 237 |
+
|
| 238 |
+
ferent document categories'
|
| 239 |
+
parent:
|
| 240 |
+
$ref: '#/body'
|
| 241 |
+
prov:
|
| 242 |
+
- bbox:
|
| 243 |
+
b: 334.4
|
| 244 |
+
coord_origin: BOTTOMLEFT
|
| 245 |
+
l: 323.0
|
| 246 |
+
r: 376.0
|
| 247 |
+
t: 354.3
|
| 248 |
+
charspan:
|
| 249 |
+
- 1
|
| 250 |
+
- 423
|
| 251 |
+
page_no: 1
|
| 252 |
+
self_ref: '#/texts/3'
|
| 253 |
+
text: 'Figure 1: Four examples of complex page layouts across different document
|
| 254 |
+
categories'
|
| 255 |
+
version: 1.7.0
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/dummy_doc_with_meta_modified.yaml
ADDED
|
@@ -0,0 +1,293 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
body:
|
| 2 |
+
children:
|
| 3 |
+
- $ref: '#/texts/1'
|
| 4 |
+
- $ref: '#/pictures/0'
|
| 5 |
+
- $ref: '#/texts/3'
|
| 6 |
+
- $ref: '#/tables/0'
|
| 7 |
+
content_layer: body
|
| 8 |
+
label: unspecified
|
| 9 |
+
meta:
|
| 10 |
+
my_corp__doc_category: technical_report
|
| 11 |
+
my_corp__doc_version: '1.0'
|
| 12 |
+
summary:
|
| 13 |
+
confidence: 0.98
|
| 14 |
+
text: This is a document-level summary describing the entire document.
|
| 15 |
+
name: _root_
|
| 16 |
+
self_ref: '#/body'
|
| 17 |
+
form_items: []
|
| 18 |
+
furniture:
|
| 19 |
+
children:
|
| 20 |
+
- $ref: '#/texts/0'
|
| 21 |
+
content_layer: body
|
| 22 |
+
label: unspecified
|
| 23 |
+
name: _root_
|
| 24 |
+
self_ref: '#/furniture'
|
| 25 |
+
groups: []
|
| 26 |
+
key_value_items: []
|
| 27 |
+
name: dummy_doc
|
| 28 |
+
origin:
|
| 29 |
+
binary_hash: 7954723514066505909
|
| 30 |
+
filename: dummy_doc.pdf
|
| 31 |
+
mimetype: application/pdf
|
| 32 |
+
pages:
|
| 33 |
+
'1':
|
| 34 |
+
image:
|
| 35 |
+
dpi: 144
|
| 36 |
+
mimetype: image/png
|
| 37 |
+
size:
|
| 38 |
+
height: 1166.0
|
| 39 |
+
width: 1536.0
|
| 40 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 41 |
+
page_no: 1
|
| 42 |
+
size:
|
| 43 |
+
height: 583.15
|
| 44 |
+
width: 768.23
|
| 45 |
+
pictures:
|
| 46 |
+
- annotations:
|
| 47 |
+
- kind: classification
|
| 48 |
+
predicted_classes:
|
| 49 |
+
- class_name: bar_chart
|
| 50 |
+
confidence: 0.78
|
| 51 |
+
provenance: model1
|
| 52 |
+
- kind: description
|
| 53 |
+
provenance: model2
|
| 54 |
+
text: '...'
|
| 55 |
+
- class_name: chemistry_molecular_structure
|
| 56 |
+
confidence: 0.98
|
| 57 |
+
kind: molecule_data
|
| 58 |
+
provenance: model3-1.0.0
|
| 59 |
+
segmentation:
|
| 60 |
+
- - 0.0
|
| 61 |
+
- 0.0
|
| 62 |
+
- - 1.0
|
| 63 |
+
- 0.0
|
| 64 |
+
- - 0.0
|
| 65 |
+
- 1.0
|
| 66 |
+
- - 1.0
|
| 67 |
+
- 1.0
|
| 68 |
+
smi: CC1=NNC(C2=CN3C=CN=C3C(CC3=CC(F)=CC(F)=C3)=N2)=N1
|
| 69 |
+
- content:
|
| 70 |
+
myanalysis:
|
| 71 |
+
prediction: abc
|
| 72 |
+
something_else:
|
| 73 |
+
text: aaa
|
| 74 |
+
kind: misc
|
| 75 |
+
captions:
|
| 76 |
+
- $ref: '#/texts/3'
|
| 77 |
+
children:
|
| 78 |
+
- $ref: '#/texts/2'
|
| 79 |
+
content_layer: body
|
| 80 |
+
footnotes: []
|
| 81 |
+
image:
|
| 82 |
+
dpi: 72
|
| 83 |
+
mimetype: image/png
|
| 84 |
+
size:
|
| 85 |
+
height: 351.0
|
| 86 |
+
width: 231.0
|
| 87 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 88 |
+
label: picture
|
| 89 |
+
meta:
|
| 90 |
+
classification:
|
| 91 |
+
predictions:
|
| 92 |
+
- class_name: bar_chart
|
| 93 |
+
confidence: 0.78
|
| 94 |
+
created_by: model1
|
| 95 |
+
description:
|
| 96 |
+
created_by: model2
|
| 97 |
+
text: '...'
|
| 98 |
+
docling_legacy__misc:
|
| 99 |
+
myanalysis:
|
| 100 |
+
prediction: abc
|
| 101 |
+
something_else:
|
| 102 |
+
text: aaa
|
| 103 |
+
molecule:
|
| 104 |
+
confidence: 0.98
|
| 105 |
+
created_by: model3-1.0.0
|
| 106 |
+
docling_legacy__class_name: chemistry_molecular_structure
|
| 107 |
+
docling_legacy__segmentation:
|
| 108 |
+
- - 0.0
|
| 109 |
+
- 0.0
|
| 110 |
+
- - 1.0
|
| 111 |
+
- 0.0
|
| 112 |
+
- - 0.0
|
| 113 |
+
- 1.0
|
| 114 |
+
- - 1.0
|
| 115 |
+
- 1.0
|
| 116 |
+
smi: CC1=NNC(C2=CN3C=CN=C3C(CC3=CC(F)=CC(F)=C3)=N2)=N1
|
| 117 |
+
parent:
|
| 118 |
+
$ref: '#/body'
|
| 119 |
+
prov:
|
| 120 |
+
- bbox:
|
| 121 |
+
b: 582.4
|
| 122 |
+
coord_origin: TOPLEFT
|
| 123 |
+
l: 456.3
|
| 124 |
+
r: 702.5
|
| 125 |
+
t: 145.8
|
| 126 |
+
charspan:
|
| 127 |
+
- 0
|
| 128 |
+
- 288
|
| 129 |
+
page_no: 1
|
| 130 |
+
references: []
|
| 131 |
+
self_ref: '#/pictures/0'
|
| 132 |
+
- annotations: []
|
| 133 |
+
captions: []
|
| 134 |
+
children: []
|
| 135 |
+
content_layer: body
|
| 136 |
+
footnotes: []
|
| 137 |
+
image:
|
| 138 |
+
dpi: 72
|
| 139 |
+
mimetype: image/png
|
| 140 |
+
size:
|
| 141 |
+
height: 2.0
|
| 142 |
+
width: 2.0
|
| 143 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 144 |
+
label: picture
|
| 145 |
+
parent:
|
| 146 |
+
$ref: '#/body'
|
| 147 |
+
prov: []
|
| 148 |
+
references: []
|
| 149 |
+
self_ref: '#/pictures/1'
|
| 150 |
+
schema_name: DoclingDocument
|
| 151 |
+
tables:
|
| 152 |
+
- annotations:
|
| 153 |
+
- kind: description
|
| 154 |
+
provenance: model3
|
| 155 |
+
text: A description annotation for this table.
|
| 156 |
+
- content:
|
| 157 |
+
foo: bar
|
| 158 |
+
kind: misc
|
| 159 |
+
captions: []
|
| 160 |
+
children: []
|
| 161 |
+
content_layer: body
|
| 162 |
+
data:
|
| 163 |
+
grid: []
|
| 164 |
+
num_cols: 0
|
| 165 |
+
num_rows: 0
|
| 166 |
+
orientation: rot_0
|
| 167 |
+
table_cells: []
|
| 168 |
+
footnotes: []
|
| 169 |
+
image:
|
| 170 |
+
dpi: 72
|
| 171 |
+
mimetype: image/png
|
| 172 |
+
size:
|
| 173 |
+
height: 351.0
|
| 174 |
+
width: 231.0
|
| 175 |
+
uri: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII=
|
| 176 |
+
label: table
|
| 177 |
+
meta:
|
| 178 |
+
description:
|
| 179 |
+
created_by: model3
|
| 180 |
+
text: A description annotation for this table.
|
| 181 |
+
docling_legacy__misc:
|
| 182 |
+
foo: bar
|
| 183 |
+
parent:
|
| 184 |
+
$ref: '#/body'
|
| 185 |
+
prov:
|
| 186 |
+
- bbox:
|
| 187 |
+
b: 334.4
|
| 188 |
+
coord_origin: BOTTOMLEFT
|
| 189 |
+
l: 323.0
|
| 190 |
+
r: 376.0
|
| 191 |
+
t: 354.3
|
| 192 |
+
charspan:
|
| 193 |
+
- 1
|
| 194 |
+
- 423
|
| 195 |
+
page_no: 1
|
| 196 |
+
references: []
|
| 197 |
+
self_ref: '#/tables/0'
|
| 198 |
+
texts:
|
| 199 |
+
- children: []
|
| 200 |
+
content_layer: body
|
| 201 |
+
label: page_header
|
| 202 |
+
orig: arXiv:2206.01062v1 [cs.CV] 2 Jun 2022
|
| 203 |
+
parent:
|
| 204 |
+
$ref: '#/furniture'
|
| 205 |
+
prov:
|
| 206 |
+
- bbox:
|
| 207 |
+
b: 476.2
|
| 208 |
+
coord_origin: TOPLEFT
|
| 209 |
+
l: 21.3
|
| 210 |
+
r: 35.2
|
| 211 |
+
t: 52.3
|
| 212 |
+
charspan:
|
| 213 |
+
- 1
|
| 214 |
+
- 423
|
| 215 |
+
page_no: 1
|
| 216 |
+
self_ref: '#/texts/0'
|
| 217 |
+
text: arXiv:2206.01062v1 [cs.CV] 2 Jun 2022
|
| 218 |
+
- children: []
|
| 219 |
+
content_layer: body
|
| 220 |
+
label: title
|
| 221 |
+
meta:
|
| 222 |
+
my_corp__foo: More stuff here.
|
| 223 |
+
summary:
|
| 224 |
+
confidence: 0.95
|
| 225 |
+
docling_legacy__provenance: model1
|
| 226 |
+
text: This is a title.
|
| 227 |
+
orig: 'DocLayNet: A Large Human-Annotated Dataset for
|
| 228 |
+
|
| 229 |
+
Document-Layout Analysis'
|
| 230 |
+
parent:
|
| 231 |
+
$ref: '#/body'
|
| 232 |
+
prov:
|
| 233 |
+
- bbox:
|
| 234 |
+
b: 53.4
|
| 235 |
+
coord_origin: TOPLEFT
|
| 236 |
+
l: 65.0
|
| 237 |
+
r: 623.2
|
| 238 |
+
t: 30.1
|
| 239 |
+
charspan:
|
| 240 |
+
- 1
|
| 241 |
+
- 423
|
| 242 |
+
page_no: 1
|
| 243 |
+
self_ref: '#/texts/1'
|
| 244 |
+
text: 'DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis'
|
| 245 |
+
- children: []
|
| 246 |
+
content_layer: body
|
| 247 |
+
label: section_header
|
| 248 |
+
level: 1
|
| 249 |
+
meta:
|
| 250 |
+
my_corp__coords:
|
| 251 |
+
latitude: 8.5417
|
| 252 |
+
longitude: 47.3769
|
| 253 |
+
summary:
|
| 254 |
+
text: This is a section header.
|
| 255 |
+
orig: OPERATION (cont.)
|
| 256 |
+
parent:
|
| 257 |
+
$ref: '#/pictures/0'
|
| 258 |
+
prov:
|
| 259 |
+
- bbox:
|
| 260 |
+
b: 334.4
|
| 261 |
+
coord_origin: BOTTOMLEFT
|
| 262 |
+
l: 323.0
|
| 263 |
+
r: 376.0
|
| 264 |
+
t: 354.3
|
| 265 |
+
charspan:
|
| 266 |
+
- 0
|
| 267 |
+
- 734
|
| 268 |
+
page_no: 1
|
| 269 |
+
self_ref: '#/texts/2'
|
| 270 |
+
text: OPERATION (cont.)
|
| 271 |
+
- children: []
|
| 272 |
+
content_layer: body
|
| 273 |
+
label: caption
|
| 274 |
+
orig: 'Figure 1: Four examples of complex page layouts across dif-
|
| 275 |
+
|
| 276 |
+
ferent document categories'
|
| 277 |
+
parent:
|
| 278 |
+
$ref: '#/body'
|
| 279 |
+
prov:
|
| 280 |
+
- bbox:
|
| 281 |
+
b: 334.4
|
| 282 |
+
coord_origin: BOTTOMLEFT
|
| 283 |
+
l: 323.0
|
| 284 |
+
r: 376.0
|
| 285 |
+
t: 354.3
|
| 286 |
+
charspan:
|
| 287 |
+
- 1
|
| 288 |
+
- 423
|
| 289 |
+
page_no: 1
|
| 290 |
+
self_ref: '#/texts/3'
|
| 291 |
+
text: 'Figure 1: Four examples of complex page layouts across different document
|
| 292 |
+
categories'
|
| 293 |
+
version: 1.10.0
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_item_outside_field_region.gt.dclg.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<doclang>
|
| 2 |
+
<field_region>
|
| 3 |
+
<field_item>
|
| 4 |
+
<key>K</key>
|
| 5 |
+
<value>V</value>
|
| 6 |
+
</field_item>
|
| 7 |
+
</field_region>
|
| 8 |
+
</doclang>
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region.gt.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Name:
|
| 2 |
+
|
| 3 |
+
John Doe
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_flat_key_value.gt.dclg.xml
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<doclang>
|
| 2 |
+
<field_region>
|
| 3 |
+
<field_item>
|
| 4 |
+
<key>Key</key>
|
| 5 |
+
</field_item>
|
| 6 |
+
<field_item>
|
| 7 |
+
<value>Value</value>
|
| 8 |
+
</field_item>
|
| 9 |
+
</field_region>
|
| 10 |
+
</doclang>
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv/deserialized.json
ADDED
|
@@ -0,0 +1,655 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_name": "DoclingDocument",
|
| 3 |
+
"version": "1.10.0",
|
| 4 |
+
"name": "Document",
|
| 5 |
+
"furniture": {
|
| 6 |
+
"self_ref": "#/furniture",
|
| 7 |
+
"children": [],
|
| 8 |
+
"content_layer": "furniture",
|
| 9 |
+
"name": "_root_",
|
| 10 |
+
"label": "unspecified"
|
| 11 |
+
},
|
| 12 |
+
"body": {
|
| 13 |
+
"self_ref": "#/body",
|
| 14 |
+
"children": [
|
| 15 |
+
{
|
| 16 |
+
"$ref": "#/field_regions/0"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"$ref": "#/texts/27"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"$ref": "#/texts/28"
|
| 23 |
+
}
|
| 24 |
+
],
|
| 25 |
+
"content_layer": "body",
|
| 26 |
+
"name": "_root_",
|
| 27 |
+
"label": "unspecified"
|
| 28 |
+
},
|
| 29 |
+
"groups": [
|
| 30 |
+
{
|
| 31 |
+
"self_ref": "#/groups/0",
|
| 32 |
+
"parent": {
|
| 33 |
+
"$ref": "#/field_regions/0"
|
| 34 |
+
},
|
| 35 |
+
"children": [
|
| 36 |
+
{
|
| 37 |
+
"$ref": "#/field_items/1"
|
| 38 |
+
}
|
| 39 |
+
],
|
| 40 |
+
"content_layer": "body",
|
| 41 |
+
"name": "group",
|
| 42 |
+
"label": "inline"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"self_ref": "#/groups/1",
|
| 46 |
+
"parent": {
|
| 47 |
+
"$ref": "#/texts/9"
|
| 48 |
+
},
|
| 49 |
+
"children": [
|
| 50 |
+
{
|
| 51 |
+
"$ref": "#/texts/10"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"$ref": "#/texts/11"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"$ref": "#/texts/12"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"$ref": "#/texts/13"
|
| 61 |
+
}
|
| 62 |
+
],
|
| 63 |
+
"content_layer": "body",
|
| 64 |
+
"name": "group",
|
| 65 |
+
"label": "inline"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"self_ref": "#/groups/2",
|
| 69 |
+
"parent": {
|
| 70 |
+
"$ref": "#/field_items/2"
|
| 71 |
+
},
|
| 72 |
+
"children": [
|
| 73 |
+
{
|
| 74 |
+
"$ref": "#/texts/15"
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"$ref": "#/texts/16"
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"$ref": "#/texts/17"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"$ref": "#/texts/18"
|
| 84 |
+
}
|
| 85 |
+
],
|
| 86 |
+
"content_layer": "body",
|
| 87 |
+
"name": "group",
|
| 88 |
+
"label": "inline"
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"self_ref": "#/groups/3",
|
| 92 |
+
"parent": {
|
| 93 |
+
"$ref": "#/texts/20"
|
| 94 |
+
},
|
| 95 |
+
"children": [
|
| 96 |
+
{
|
| 97 |
+
"$ref": "#/texts/21"
|
| 98 |
+
}
|
| 99 |
+
],
|
| 100 |
+
"content_layer": "body",
|
| 101 |
+
"name": "group",
|
| 102 |
+
"label": "inline"
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"self_ref": "#/groups/4",
|
| 106 |
+
"parent": {
|
| 107 |
+
"$ref": "#/texts/22"
|
| 108 |
+
},
|
| 109 |
+
"children": [
|
| 110 |
+
{
|
| 111 |
+
"$ref": "#/texts/23"
|
| 112 |
+
}
|
| 113 |
+
],
|
| 114 |
+
"content_layer": "body",
|
| 115 |
+
"name": "group",
|
| 116 |
+
"label": "inline"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"self_ref": "#/groups/5",
|
| 120 |
+
"parent": {
|
| 121 |
+
"$ref": "#/texts/24"
|
| 122 |
+
},
|
| 123 |
+
"children": [
|
| 124 |
+
{
|
| 125 |
+
"$ref": "#/texts/25"
|
| 126 |
+
}
|
| 127 |
+
],
|
| 128 |
+
"content_layer": "body",
|
| 129 |
+
"name": "group",
|
| 130 |
+
"label": "inline"
|
| 131 |
+
}
|
| 132 |
+
],
|
| 133 |
+
"texts": [
|
| 134 |
+
{
|
| 135 |
+
"self_ref": "#/texts/0",
|
| 136 |
+
"parent": {
|
| 137 |
+
"$ref": "#/field_regions/0"
|
| 138 |
+
},
|
| 139 |
+
"children": [],
|
| 140 |
+
"content_layer": "body",
|
| 141 |
+
"label": "field_heading",
|
| 142 |
+
"prov": [],
|
| 143 |
+
"orig": "KV heading",
|
| 144 |
+
"text": "KV heading",
|
| 145 |
+
"level": 1
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"self_ref": "#/texts/1",
|
| 149 |
+
"parent": {
|
| 150 |
+
"$ref": "#/field_items/0"
|
| 151 |
+
},
|
| 152 |
+
"children": [],
|
| 153 |
+
"content_layer": "body",
|
| 154 |
+
"label": "field_key",
|
| 155 |
+
"prov": [],
|
| 156 |
+
"orig": "simple key",
|
| 157 |
+
"text": "simple key"
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"self_ref": "#/texts/2",
|
| 161 |
+
"parent": {
|
| 162 |
+
"$ref": "#/field_items/0"
|
| 163 |
+
},
|
| 164 |
+
"children": [],
|
| 165 |
+
"content_layer": "body",
|
| 166 |
+
"label": "field_value",
|
| 167 |
+
"prov": [],
|
| 168 |
+
"orig": "simple value",
|
| 169 |
+
"text": "simple value",
|
| 170 |
+
"kind": "read_only"
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"self_ref": "#/texts/3",
|
| 174 |
+
"parent": {
|
| 175 |
+
"$ref": "#/field_regions/0"
|
| 176 |
+
},
|
| 177 |
+
"children": [],
|
| 178 |
+
"content_layer": "body",
|
| 179 |
+
"label": "field_heading",
|
| 180 |
+
"prov": [],
|
| 181 |
+
"orig": "KV sub-heading",
|
| 182 |
+
"text": "KV sub-heading",
|
| 183 |
+
"level": 2
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"self_ref": "#/texts/4",
|
| 187 |
+
"parent": {
|
| 188 |
+
"$ref": "#/field_items/1"
|
| 189 |
+
},
|
| 190 |
+
"children": [],
|
| 191 |
+
"content_layer": "body",
|
| 192 |
+
"label": "field_key",
|
| 193 |
+
"prov": [],
|
| 194 |
+
"orig": "my inline key1: ",
|
| 195 |
+
"text": "my inline key1: "
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"self_ref": "#/texts/5",
|
| 199 |
+
"parent": {
|
| 200 |
+
"$ref": "#/field_items/1"
|
| 201 |
+
},
|
| 202 |
+
"children": [],
|
| 203 |
+
"content_layer": "body",
|
| 204 |
+
"label": "field_value",
|
| 205 |
+
"prov": [],
|
| 206 |
+
"orig": "my inline value1",
|
| 207 |
+
"text": "my inline value1",
|
| 208 |
+
"kind": "fillable"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"self_ref": "#/texts/6",
|
| 212 |
+
"parent": {
|
| 213 |
+
"$ref": "#/field_items/2"
|
| 214 |
+
},
|
| 215 |
+
"children": [],
|
| 216 |
+
"content_layer": "body",
|
| 217 |
+
"label": "field_key",
|
| 218 |
+
"prov": [],
|
| 219 |
+
"orig": "name",
|
| 220 |
+
"text": "name"
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"self_ref": "#/texts/7",
|
| 224 |
+
"parent": {
|
| 225 |
+
"$ref": "#/field_items/2"
|
| 226 |
+
},
|
| 227 |
+
"children": [],
|
| 228 |
+
"content_layer": "body",
|
| 229 |
+
"label": "field_value",
|
| 230 |
+
"prov": [],
|
| 231 |
+
"orig": "John Doe",
|
| 232 |
+
"text": "John Doe",
|
| 233 |
+
"kind": "fillable"
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"self_ref": "#/texts/8",
|
| 237 |
+
"parent": {
|
| 238 |
+
"$ref": "#/field_items/2"
|
| 239 |
+
},
|
| 240 |
+
"children": [],
|
| 241 |
+
"content_layer": "body",
|
| 242 |
+
"label": "field_value",
|
| 243 |
+
"prov": [],
|
| 244 |
+
"orig": "Max Mustermann",
|
| 245 |
+
"text": "Max Mustermann",
|
| 246 |
+
"kind": "fillable"
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"self_ref": "#/texts/9",
|
| 250 |
+
"parent": {
|
| 251 |
+
"$ref": "#/field_items/2"
|
| 252 |
+
},
|
| 253 |
+
"children": [
|
| 254 |
+
{
|
| 255 |
+
"$ref": "#/groups/1"
|
| 256 |
+
}
|
| 257 |
+
],
|
| 258 |
+
"content_layer": "body",
|
| 259 |
+
"label": "field_value",
|
| 260 |
+
"prov": [],
|
| 261 |
+
"orig": "",
|
| 262 |
+
"text": "",
|
| 263 |
+
"kind": "fillable"
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"self_ref": "#/texts/10",
|
| 267 |
+
"parent": {
|
| 268 |
+
"$ref": "#/groups/1"
|
| 269 |
+
},
|
| 270 |
+
"children": [],
|
| 271 |
+
"content_layer": "body",
|
| 272 |
+
"label": "checkbox_unselected",
|
| 273 |
+
"prov": [],
|
| 274 |
+
"orig": "",
|
| 275 |
+
"text": ""
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"self_ref": "#/texts/11",
|
| 279 |
+
"parent": {
|
| 280 |
+
"$ref": "#/groups/1"
|
| 281 |
+
},
|
| 282 |
+
"children": [],
|
| 283 |
+
"content_layer": "body",
|
| 284 |
+
"label": "text",
|
| 285 |
+
"prov": [],
|
| 286 |
+
"orig": "Clark ",
|
| 287 |
+
"text": "Clark "
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"self_ref": "#/texts/12",
|
| 291 |
+
"parent": {
|
| 292 |
+
"$ref": "#/groups/1"
|
| 293 |
+
},
|
| 294 |
+
"children": [],
|
| 295 |
+
"content_layer": "body",
|
| 296 |
+
"label": "text",
|
| 297 |
+
"prov": [],
|
| 298 |
+
"orig": "Kent",
|
| 299 |
+
"text": "Kent",
|
| 300 |
+
"formatting": {
|
| 301 |
+
"bold": true,
|
| 302 |
+
"italic": false,
|
| 303 |
+
"underline": false,
|
| 304 |
+
"strikethrough": false,
|
| 305 |
+
"script": "baseline"
|
| 306 |
+
}
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"self_ref": "#/texts/13",
|
| 310 |
+
"parent": {
|
| 311 |
+
"$ref": "#/groups/1"
|
| 312 |
+
},
|
| 313 |
+
"children": [],
|
| 314 |
+
"content_layer": "body",
|
| 315 |
+
"label": "field_hint",
|
| 316 |
+
"prov": [],
|
| 317 |
+
"orig": "Select this if you are a Superman fan",
|
| 318 |
+
"text": "Select this if you are a Superman fan"
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"self_ref": "#/texts/14",
|
| 322 |
+
"parent": {
|
| 323 |
+
"$ref": "#/field_items/2"
|
| 324 |
+
},
|
| 325 |
+
"children": [],
|
| 326 |
+
"content_layer": "body",
|
| 327 |
+
"label": "field_value",
|
| 328 |
+
"prov": [],
|
| 329 |
+
"orig": "",
|
| 330 |
+
"text": "",
|
| 331 |
+
"kind": "read_only"
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"self_ref": "#/texts/15",
|
| 335 |
+
"parent": {
|
| 336 |
+
"$ref": "#/groups/2"
|
| 337 |
+
},
|
| 338 |
+
"children": [],
|
| 339 |
+
"content_layer": "body",
|
| 340 |
+
"label": "text",
|
| 341 |
+
"prov": [],
|
| 342 |
+
"orig": "My first input ",
|
| 343 |
+
"text": "My first input "
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"self_ref": "#/texts/16",
|
| 347 |
+
"parent": {
|
| 348 |
+
"$ref": "#/groups/2"
|
| 349 |
+
},
|
| 350 |
+
"children": [],
|
| 351 |
+
"content_layer": "body",
|
| 352 |
+
"label": "field_value",
|
| 353 |
+
"prov": [],
|
| 354 |
+
"orig": "",
|
| 355 |
+
"text": "",
|
| 356 |
+
"kind": "fillable"
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"self_ref": "#/texts/17",
|
| 360 |
+
"parent": {
|
| 361 |
+
"$ref": "#/groups/2"
|
| 362 |
+
},
|
| 363 |
+
"children": [],
|
| 364 |
+
"content_layer": "body",
|
| 365 |
+
"label": "text",
|
| 366 |
+
"prov": [],
|
| 367 |
+
"orig": " and my second input ",
|
| 368 |
+
"text": " and my second input "
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"self_ref": "#/texts/18",
|
| 372 |
+
"parent": {
|
| 373 |
+
"$ref": "#/groups/2"
|
| 374 |
+
},
|
| 375 |
+
"children": [],
|
| 376 |
+
"content_layer": "body",
|
| 377 |
+
"label": "field_value",
|
| 378 |
+
"prov": [],
|
| 379 |
+
"orig": "m",
|
| 380 |
+
"text": "m",
|
| 381 |
+
"kind": "fillable"
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"self_ref": "#/texts/19",
|
| 385 |
+
"parent": {
|
| 386 |
+
"$ref": "#/field_items/3"
|
| 387 |
+
},
|
| 388 |
+
"children": [],
|
| 389 |
+
"content_layer": "body",
|
| 390 |
+
"label": "field_key",
|
| 391 |
+
"prov": [],
|
| 392 |
+
"orig": "I am in the country as a: ",
|
| 393 |
+
"text": "I am in the country as a: "
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"self_ref": "#/texts/20",
|
| 397 |
+
"parent": {
|
| 398 |
+
"$ref": "#/field_items/3"
|
| 399 |
+
},
|
| 400 |
+
"children": [
|
| 401 |
+
{
|
| 402 |
+
"$ref": "#/groups/3"
|
| 403 |
+
}
|
| 404 |
+
],
|
| 405 |
+
"content_layer": "body",
|
| 406 |
+
"label": "field_value",
|
| 407 |
+
"prov": [],
|
| 408 |
+
"orig": "",
|
| 409 |
+
"text": "",
|
| 410 |
+
"kind": "fillable"
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"self_ref": "#/texts/21",
|
| 414 |
+
"parent": {
|
| 415 |
+
"$ref": "#/groups/3"
|
| 416 |
+
},
|
| 417 |
+
"children": [],
|
| 418 |
+
"content_layer": "body",
|
| 419 |
+
"label": "checkbox_unselected",
|
| 420 |
+
"prov": [],
|
| 421 |
+
"orig": "Visitor",
|
| 422 |
+
"text": "Visitor"
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"self_ref": "#/texts/22",
|
| 426 |
+
"parent": {
|
| 427 |
+
"$ref": "#/field_items/3"
|
| 428 |
+
},
|
| 429 |
+
"children": [
|
| 430 |
+
{
|
| 431 |
+
"$ref": "#/groups/4"
|
| 432 |
+
}
|
| 433 |
+
],
|
| 434 |
+
"content_layer": "body",
|
| 435 |
+
"label": "field_value",
|
| 436 |
+
"prov": [],
|
| 437 |
+
"orig": "",
|
| 438 |
+
"text": "",
|
| 439 |
+
"kind": "fillable"
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"self_ref": "#/texts/23",
|
| 443 |
+
"parent": {
|
| 444 |
+
"$ref": "#/groups/4"
|
| 445 |
+
},
|
| 446 |
+
"children": [],
|
| 447 |
+
"content_layer": "body",
|
| 448 |
+
"label": "checkbox_unselected",
|
| 449 |
+
"prov": [],
|
| 450 |
+
"orig": " Student",
|
| 451 |
+
"text": " Student"
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"self_ref": "#/texts/24",
|
| 455 |
+
"parent": {
|
| 456 |
+
"$ref": "#/field_items/3"
|
| 457 |
+
},
|
| 458 |
+
"children": [
|
| 459 |
+
{
|
| 460 |
+
"$ref": "#/groups/5"
|
| 461 |
+
}
|
| 462 |
+
],
|
| 463 |
+
"content_layer": "body",
|
| 464 |
+
"label": "field_value",
|
| 465 |
+
"prov": [],
|
| 466 |
+
"orig": "",
|
| 467 |
+
"text": "",
|
| 468 |
+
"kind": "fillable"
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"self_ref": "#/texts/25",
|
| 472 |
+
"parent": {
|
| 473 |
+
"$ref": "#/groups/5"
|
| 474 |
+
},
|
| 475 |
+
"children": [],
|
| 476 |
+
"content_layer": "body",
|
| 477 |
+
"label": "checkbox_unselected",
|
| 478 |
+
"prov": [],
|
| 479 |
+
"orig": "Other (Specify)",
|
| 480 |
+
"text": "Other (Specify)"
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"self_ref": "#/texts/26",
|
| 484 |
+
"parent": {
|
| 485 |
+
"$ref": "#/field_items/3"
|
| 486 |
+
},
|
| 487 |
+
"children": [],
|
| 488 |
+
"content_layer": "body",
|
| 489 |
+
"label": "field_value",
|
| 490 |
+
"prov": [],
|
| 491 |
+
"orig": "",
|
| 492 |
+
"text": "",
|
| 493 |
+
"kind": "fillable"
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"self_ref": "#/texts/27",
|
| 497 |
+
"parent": {
|
| 498 |
+
"$ref": "#/body"
|
| 499 |
+
},
|
| 500 |
+
"children": [],
|
| 501 |
+
"content_layer": "body",
|
| 502 |
+
"label": "text",
|
| 503 |
+
"prov": [],
|
| 504 |
+
"orig": "Some final stuff.",
|
| 505 |
+
"text": "Some final stuff."
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"self_ref": "#/texts/28",
|
| 509 |
+
"parent": {
|
| 510 |
+
"$ref": "#/body"
|
| 511 |
+
},
|
| 512 |
+
"children": [],
|
| 513 |
+
"content_layer": "body",
|
| 514 |
+
"label": "text",
|
| 515 |
+
"prov": [],
|
| 516 |
+
"orig": "The end.",
|
| 517 |
+
"text": "The end."
|
| 518 |
+
}
|
| 519 |
+
],
|
| 520 |
+
"pictures": [],
|
| 521 |
+
"tables": [],
|
| 522 |
+
"key_value_items": [],
|
| 523 |
+
"form_items": [],
|
| 524 |
+
"field_regions": [
|
| 525 |
+
{
|
| 526 |
+
"self_ref": "#/field_regions/0",
|
| 527 |
+
"parent": {
|
| 528 |
+
"$ref": "#/body"
|
| 529 |
+
},
|
| 530 |
+
"children": [
|
| 531 |
+
{
|
| 532 |
+
"$ref": "#/texts/0"
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"$ref": "#/field_items/0"
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"$ref": "#/texts/3"
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"$ref": "#/groups/0"
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"$ref": "#/field_items/2"
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"$ref": "#/field_items/3"
|
| 548 |
+
}
|
| 549 |
+
],
|
| 550 |
+
"content_layer": "body",
|
| 551 |
+
"label": "field_region",
|
| 552 |
+
"prov": []
|
| 553 |
+
}
|
| 554 |
+
],
|
| 555 |
+
"field_items": [
|
| 556 |
+
{
|
| 557 |
+
"self_ref": "#/field_items/0",
|
| 558 |
+
"parent": {
|
| 559 |
+
"$ref": "#/field_regions/0"
|
| 560 |
+
},
|
| 561 |
+
"children": [
|
| 562 |
+
{
|
| 563 |
+
"$ref": "#/texts/1"
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"$ref": "#/texts/2"
|
| 567 |
+
}
|
| 568 |
+
],
|
| 569 |
+
"content_layer": "body",
|
| 570 |
+
"label": "field_item",
|
| 571 |
+
"prov": []
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"self_ref": "#/field_items/1",
|
| 575 |
+
"parent": {
|
| 576 |
+
"$ref": "#/groups/0"
|
| 577 |
+
},
|
| 578 |
+
"children": [
|
| 579 |
+
{
|
| 580 |
+
"$ref": "#/texts/4"
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"$ref": "#/texts/5"
|
| 584 |
+
}
|
| 585 |
+
],
|
| 586 |
+
"content_layer": "body",
|
| 587 |
+
"label": "field_item",
|
| 588 |
+
"prov": []
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"self_ref": "#/field_items/2",
|
| 592 |
+
"parent": {
|
| 593 |
+
"$ref": "#/field_regions/0"
|
| 594 |
+
},
|
| 595 |
+
"children": [
|
| 596 |
+
{
|
| 597 |
+
"$ref": "#/texts/6"
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"$ref": "#/texts/7"
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"$ref": "#/texts/8"
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"$ref": "#/texts/9"
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"$ref": "#/texts/14"
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"$ref": "#/groups/2"
|
| 613 |
+
}
|
| 614 |
+
],
|
| 615 |
+
"content_layer": "body",
|
| 616 |
+
"label": "field_item",
|
| 617 |
+
"prov": []
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"self_ref": "#/field_items/3",
|
| 621 |
+
"parent": {
|
| 622 |
+
"$ref": "#/field_regions/0"
|
| 623 |
+
},
|
| 624 |
+
"children": [
|
| 625 |
+
{
|
| 626 |
+
"$ref": "#/texts/19"
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"$ref": "#/texts/20"
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"$ref": "#/texts/22"
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"$ref": "#/texts/24"
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"$ref": "#/texts/26"
|
| 639 |
+
}
|
| 640 |
+
],
|
| 641 |
+
"content_layer": "body",
|
| 642 |
+
"label": "field_item",
|
| 643 |
+
"prov": []
|
| 644 |
+
}
|
| 645 |
+
],
|
| 646 |
+
"pages": {
|
| 647 |
+
"1": {
|
| 648 |
+
"size": {
|
| 649 |
+
"width": 512.0,
|
| 650 |
+
"height": 512.0
|
| 651 |
+
},
|
| 652 |
+
"page_no": 1
|
| 653 |
+
}
|
| 654 |
+
}
|
| 655 |
+
}
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv/input.json
ADDED
|
@@ -0,0 +1,647 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_name": "DoclingDocument",
|
| 3 |
+
"version": "1.10.0",
|
| 4 |
+
"name": "",
|
| 5 |
+
"furniture": {
|
| 6 |
+
"self_ref": "#/furniture",
|
| 7 |
+
"children": [],
|
| 8 |
+
"content_layer": "furniture",
|
| 9 |
+
"name": "_root_",
|
| 10 |
+
"label": "unspecified"
|
| 11 |
+
},
|
| 12 |
+
"body": {
|
| 13 |
+
"self_ref": "#/body",
|
| 14 |
+
"children": [
|
| 15 |
+
{
|
| 16 |
+
"$ref": "#/field_regions/0"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"$ref": "#/texts/27"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"$ref": "#/texts/28"
|
| 23 |
+
}
|
| 24 |
+
],
|
| 25 |
+
"content_layer": "body",
|
| 26 |
+
"name": "_root_",
|
| 27 |
+
"label": "unspecified"
|
| 28 |
+
},
|
| 29 |
+
"groups": [
|
| 30 |
+
{
|
| 31 |
+
"self_ref": "#/groups/0",
|
| 32 |
+
"parent": {
|
| 33 |
+
"$ref": "#/field_regions/0"
|
| 34 |
+
},
|
| 35 |
+
"children": [
|
| 36 |
+
{
|
| 37 |
+
"$ref": "#/field_items/1"
|
| 38 |
+
}
|
| 39 |
+
],
|
| 40 |
+
"content_layer": "body",
|
| 41 |
+
"name": "group",
|
| 42 |
+
"label": "inline"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"self_ref": "#/groups/1",
|
| 46 |
+
"parent": {
|
| 47 |
+
"$ref": "#/texts/9"
|
| 48 |
+
},
|
| 49 |
+
"children": [
|
| 50 |
+
{
|
| 51 |
+
"$ref": "#/texts/10"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"$ref": "#/texts/11"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"$ref": "#/texts/12"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"$ref": "#/texts/13"
|
| 61 |
+
}
|
| 62 |
+
],
|
| 63 |
+
"content_layer": "body",
|
| 64 |
+
"name": "group",
|
| 65 |
+
"label": "inline"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"self_ref": "#/groups/2",
|
| 69 |
+
"parent": {
|
| 70 |
+
"$ref": "#/field_items/2"
|
| 71 |
+
},
|
| 72 |
+
"children": [
|
| 73 |
+
{
|
| 74 |
+
"$ref": "#/texts/15"
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"$ref": "#/texts/16"
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"$ref": "#/texts/17"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"$ref": "#/texts/18"
|
| 84 |
+
}
|
| 85 |
+
],
|
| 86 |
+
"content_layer": "body",
|
| 87 |
+
"name": "group",
|
| 88 |
+
"label": "inline"
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"self_ref": "#/groups/3",
|
| 92 |
+
"parent": {
|
| 93 |
+
"$ref": "#/texts/20"
|
| 94 |
+
},
|
| 95 |
+
"children": [
|
| 96 |
+
{
|
| 97 |
+
"$ref": "#/texts/21"
|
| 98 |
+
}
|
| 99 |
+
],
|
| 100 |
+
"content_layer": "body",
|
| 101 |
+
"name": "group",
|
| 102 |
+
"label": "inline"
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"self_ref": "#/groups/4",
|
| 106 |
+
"parent": {
|
| 107 |
+
"$ref": "#/texts/22"
|
| 108 |
+
},
|
| 109 |
+
"children": [
|
| 110 |
+
{
|
| 111 |
+
"$ref": "#/texts/23"
|
| 112 |
+
}
|
| 113 |
+
],
|
| 114 |
+
"content_layer": "body",
|
| 115 |
+
"name": "group",
|
| 116 |
+
"label": "inline"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"self_ref": "#/groups/5",
|
| 120 |
+
"parent": {
|
| 121 |
+
"$ref": "#/texts/24"
|
| 122 |
+
},
|
| 123 |
+
"children": [
|
| 124 |
+
{
|
| 125 |
+
"$ref": "#/texts/25"
|
| 126 |
+
}
|
| 127 |
+
],
|
| 128 |
+
"content_layer": "body",
|
| 129 |
+
"name": "group",
|
| 130 |
+
"label": "inline"
|
| 131 |
+
}
|
| 132 |
+
],
|
| 133 |
+
"texts": [
|
| 134 |
+
{
|
| 135 |
+
"self_ref": "#/texts/0",
|
| 136 |
+
"parent": {
|
| 137 |
+
"$ref": "#/field_regions/0"
|
| 138 |
+
},
|
| 139 |
+
"children": [],
|
| 140 |
+
"content_layer": "body",
|
| 141 |
+
"label": "field_heading",
|
| 142 |
+
"prov": [],
|
| 143 |
+
"orig": "KV heading",
|
| 144 |
+
"text": "KV heading",
|
| 145 |
+
"level": 1
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"self_ref": "#/texts/1",
|
| 149 |
+
"parent": {
|
| 150 |
+
"$ref": "#/field_items/0"
|
| 151 |
+
},
|
| 152 |
+
"children": [],
|
| 153 |
+
"content_layer": "body",
|
| 154 |
+
"label": "field_key",
|
| 155 |
+
"prov": [],
|
| 156 |
+
"orig": "simple key",
|
| 157 |
+
"text": "simple key"
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"self_ref": "#/texts/2",
|
| 161 |
+
"parent": {
|
| 162 |
+
"$ref": "#/field_items/0"
|
| 163 |
+
},
|
| 164 |
+
"children": [],
|
| 165 |
+
"content_layer": "body",
|
| 166 |
+
"label": "field_value",
|
| 167 |
+
"prov": [],
|
| 168 |
+
"orig": "simple value",
|
| 169 |
+
"text": "simple value",
|
| 170 |
+
"kind": "read_only"
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"self_ref": "#/texts/3",
|
| 174 |
+
"parent": {
|
| 175 |
+
"$ref": "#/field_regions/0"
|
| 176 |
+
},
|
| 177 |
+
"children": [],
|
| 178 |
+
"content_layer": "body",
|
| 179 |
+
"label": "field_heading",
|
| 180 |
+
"prov": [],
|
| 181 |
+
"orig": "KV sub-heading",
|
| 182 |
+
"text": "KV sub-heading",
|
| 183 |
+
"level": 2
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"self_ref": "#/texts/4",
|
| 187 |
+
"parent": {
|
| 188 |
+
"$ref": "#/field_items/1"
|
| 189 |
+
},
|
| 190 |
+
"children": [],
|
| 191 |
+
"content_layer": "body",
|
| 192 |
+
"label": "field_key",
|
| 193 |
+
"prov": [],
|
| 194 |
+
"orig": "my inline key1: ",
|
| 195 |
+
"text": "my inline key1: "
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"self_ref": "#/texts/5",
|
| 199 |
+
"parent": {
|
| 200 |
+
"$ref": "#/field_items/1"
|
| 201 |
+
},
|
| 202 |
+
"children": [],
|
| 203 |
+
"content_layer": "body",
|
| 204 |
+
"label": "field_value",
|
| 205 |
+
"prov": [],
|
| 206 |
+
"orig": "my inline value1",
|
| 207 |
+
"text": "my inline value1",
|
| 208 |
+
"kind": "fillable"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"self_ref": "#/texts/6",
|
| 212 |
+
"parent": {
|
| 213 |
+
"$ref": "#/field_items/2"
|
| 214 |
+
},
|
| 215 |
+
"children": [],
|
| 216 |
+
"content_layer": "body",
|
| 217 |
+
"label": "field_key",
|
| 218 |
+
"prov": [],
|
| 219 |
+
"orig": "name",
|
| 220 |
+
"text": "name"
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"self_ref": "#/texts/7",
|
| 224 |
+
"parent": {
|
| 225 |
+
"$ref": "#/field_items/2"
|
| 226 |
+
},
|
| 227 |
+
"children": [],
|
| 228 |
+
"content_layer": "body",
|
| 229 |
+
"label": "field_value",
|
| 230 |
+
"prov": [],
|
| 231 |
+
"orig": "John Doe",
|
| 232 |
+
"text": "John Doe",
|
| 233 |
+
"kind": "fillable"
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"self_ref": "#/texts/8",
|
| 237 |
+
"parent": {
|
| 238 |
+
"$ref": "#/field_items/2"
|
| 239 |
+
},
|
| 240 |
+
"children": [],
|
| 241 |
+
"content_layer": "body",
|
| 242 |
+
"label": "field_value",
|
| 243 |
+
"prov": [],
|
| 244 |
+
"orig": "Max Mustermann",
|
| 245 |
+
"text": "Max Mustermann",
|
| 246 |
+
"kind": "fillable"
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"self_ref": "#/texts/9",
|
| 250 |
+
"parent": {
|
| 251 |
+
"$ref": "#/field_items/2"
|
| 252 |
+
},
|
| 253 |
+
"children": [
|
| 254 |
+
{
|
| 255 |
+
"$ref": "#/groups/1"
|
| 256 |
+
}
|
| 257 |
+
],
|
| 258 |
+
"content_layer": "body",
|
| 259 |
+
"label": "field_value",
|
| 260 |
+
"prov": [],
|
| 261 |
+
"orig": "",
|
| 262 |
+
"text": "",
|
| 263 |
+
"kind": "fillable"
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"self_ref": "#/texts/10",
|
| 267 |
+
"parent": {
|
| 268 |
+
"$ref": "#/groups/1"
|
| 269 |
+
},
|
| 270 |
+
"children": [],
|
| 271 |
+
"content_layer": "body",
|
| 272 |
+
"label": "checkbox_unselected",
|
| 273 |
+
"prov": [],
|
| 274 |
+
"orig": "",
|
| 275 |
+
"text": ""
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"self_ref": "#/texts/11",
|
| 279 |
+
"parent": {
|
| 280 |
+
"$ref": "#/groups/1"
|
| 281 |
+
},
|
| 282 |
+
"children": [],
|
| 283 |
+
"content_layer": "body",
|
| 284 |
+
"label": "text",
|
| 285 |
+
"prov": [],
|
| 286 |
+
"orig": "Clark ",
|
| 287 |
+
"text": "Clark "
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"self_ref": "#/texts/12",
|
| 291 |
+
"parent": {
|
| 292 |
+
"$ref": "#/groups/1"
|
| 293 |
+
},
|
| 294 |
+
"children": [],
|
| 295 |
+
"content_layer": "body",
|
| 296 |
+
"label": "text",
|
| 297 |
+
"prov": [],
|
| 298 |
+
"orig": "Kent",
|
| 299 |
+
"text": "Kent",
|
| 300 |
+
"formatting": {
|
| 301 |
+
"bold": true,
|
| 302 |
+
"italic": false,
|
| 303 |
+
"underline": false,
|
| 304 |
+
"strikethrough": false,
|
| 305 |
+
"script": "baseline"
|
| 306 |
+
}
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"self_ref": "#/texts/13",
|
| 310 |
+
"parent": {
|
| 311 |
+
"$ref": "#/groups/1"
|
| 312 |
+
},
|
| 313 |
+
"children": [],
|
| 314 |
+
"content_layer": "body",
|
| 315 |
+
"label": "field_hint",
|
| 316 |
+
"prov": [],
|
| 317 |
+
"orig": "Select this if you are a Superman fan",
|
| 318 |
+
"text": "Select this if you are a Superman fan"
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"self_ref": "#/texts/14",
|
| 322 |
+
"parent": {
|
| 323 |
+
"$ref": "#/field_items/2"
|
| 324 |
+
},
|
| 325 |
+
"children": [],
|
| 326 |
+
"content_layer": "body",
|
| 327 |
+
"label": "field_value",
|
| 328 |
+
"prov": [],
|
| 329 |
+
"orig": "",
|
| 330 |
+
"text": "",
|
| 331 |
+
"kind": "read_only"
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"self_ref": "#/texts/15",
|
| 335 |
+
"parent": {
|
| 336 |
+
"$ref": "#/groups/2"
|
| 337 |
+
},
|
| 338 |
+
"children": [],
|
| 339 |
+
"content_layer": "body",
|
| 340 |
+
"label": "text",
|
| 341 |
+
"prov": [],
|
| 342 |
+
"orig": "My first input ",
|
| 343 |
+
"text": "My first input "
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"self_ref": "#/texts/16",
|
| 347 |
+
"parent": {
|
| 348 |
+
"$ref": "#/groups/2"
|
| 349 |
+
},
|
| 350 |
+
"children": [],
|
| 351 |
+
"content_layer": "body",
|
| 352 |
+
"label": "field_value",
|
| 353 |
+
"prov": [],
|
| 354 |
+
"orig": "",
|
| 355 |
+
"text": "",
|
| 356 |
+
"kind": "fillable"
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"self_ref": "#/texts/17",
|
| 360 |
+
"parent": {
|
| 361 |
+
"$ref": "#/groups/2"
|
| 362 |
+
},
|
| 363 |
+
"children": [],
|
| 364 |
+
"content_layer": "body",
|
| 365 |
+
"label": "text",
|
| 366 |
+
"prov": [],
|
| 367 |
+
"orig": " and my second input ",
|
| 368 |
+
"text": " and my second input "
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"self_ref": "#/texts/18",
|
| 372 |
+
"parent": {
|
| 373 |
+
"$ref": "#/groups/2"
|
| 374 |
+
},
|
| 375 |
+
"children": [],
|
| 376 |
+
"content_layer": "body",
|
| 377 |
+
"label": "field_value",
|
| 378 |
+
"prov": [],
|
| 379 |
+
"orig": "m",
|
| 380 |
+
"text": "m",
|
| 381 |
+
"kind": "fillable"
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"self_ref": "#/texts/19",
|
| 385 |
+
"parent": {
|
| 386 |
+
"$ref": "#/field_items/3"
|
| 387 |
+
},
|
| 388 |
+
"children": [],
|
| 389 |
+
"content_layer": "body",
|
| 390 |
+
"label": "field_key",
|
| 391 |
+
"prov": [],
|
| 392 |
+
"orig": "I am in the country as a: ",
|
| 393 |
+
"text": "I am in the country as a: "
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"self_ref": "#/texts/20",
|
| 397 |
+
"parent": {
|
| 398 |
+
"$ref": "#/field_items/3"
|
| 399 |
+
},
|
| 400 |
+
"children": [
|
| 401 |
+
{
|
| 402 |
+
"$ref": "#/groups/3"
|
| 403 |
+
}
|
| 404 |
+
],
|
| 405 |
+
"content_layer": "body",
|
| 406 |
+
"label": "field_value",
|
| 407 |
+
"prov": [],
|
| 408 |
+
"orig": "",
|
| 409 |
+
"text": "",
|
| 410 |
+
"kind": "fillable"
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"self_ref": "#/texts/21",
|
| 414 |
+
"parent": {
|
| 415 |
+
"$ref": "#/groups/3"
|
| 416 |
+
},
|
| 417 |
+
"children": [],
|
| 418 |
+
"content_layer": "body",
|
| 419 |
+
"label": "checkbox_unselected",
|
| 420 |
+
"prov": [],
|
| 421 |
+
"orig": "Visitor",
|
| 422 |
+
"text": "Visitor"
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"self_ref": "#/texts/22",
|
| 426 |
+
"parent": {
|
| 427 |
+
"$ref": "#/field_items/3"
|
| 428 |
+
},
|
| 429 |
+
"children": [
|
| 430 |
+
{
|
| 431 |
+
"$ref": "#/groups/4"
|
| 432 |
+
}
|
| 433 |
+
],
|
| 434 |
+
"content_layer": "body",
|
| 435 |
+
"label": "field_value",
|
| 436 |
+
"prov": [],
|
| 437 |
+
"orig": "",
|
| 438 |
+
"text": "",
|
| 439 |
+
"kind": "fillable"
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"self_ref": "#/texts/23",
|
| 443 |
+
"parent": {
|
| 444 |
+
"$ref": "#/groups/4"
|
| 445 |
+
},
|
| 446 |
+
"children": [],
|
| 447 |
+
"content_layer": "body",
|
| 448 |
+
"label": "checkbox_unselected",
|
| 449 |
+
"prov": [],
|
| 450 |
+
"orig": " Student",
|
| 451 |
+
"text": " Student"
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"self_ref": "#/texts/24",
|
| 455 |
+
"parent": {
|
| 456 |
+
"$ref": "#/field_items/3"
|
| 457 |
+
},
|
| 458 |
+
"children": [
|
| 459 |
+
{
|
| 460 |
+
"$ref": "#/groups/5"
|
| 461 |
+
}
|
| 462 |
+
],
|
| 463 |
+
"content_layer": "body",
|
| 464 |
+
"label": "field_value",
|
| 465 |
+
"prov": [],
|
| 466 |
+
"orig": "",
|
| 467 |
+
"text": "",
|
| 468 |
+
"kind": "fillable"
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"self_ref": "#/texts/25",
|
| 472 |
+
"parent": {
|
| 473 |
+
"$ref": "#/groups/5"
|
| 474 |
+
},
|
| 475 |
+
"children": [],
|
| 476 |
+
"content_layer": "body",
|
| 477 |
+
"label": "checkbox_unselected",
|
| 478 |
+
"prov": [],
|
| 479 |
+
"orig": "Other (Specify)",
|
| 480 |
+
"text": "Other (Specify)"
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"self_ref": "#/texts/26",
|
| 484 |
+
"parent": {
|
| 485 |
+
"$ref": "#/field_items/3"
|
| 486 |
+
},
|
| 487 |
+
"children": [],
|
| 488 |
+
"content_layer": "body",
|
| 489 |
+
"label": "field_value",
|
| 490 |
+
"prov": [],
|
| 491 |
+
"orig": "",
|
| 492 |
+
"text": "",
|
| 493 |
+
"kind": "fillable"
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"self_ref": "#/texts/27",
|
| 497 |
+
"parent": {
|
| 498 |
+
"$ref": "#/body"
|
| 499 |
+
},
|
| 500 |
+
"children": [],
|
| 501 |
+
"content_layer": "body",
|
| 502 |
+
"label": "text",
|
| 503 |
+
"prov": [],
|
| 504 |
+
"orig": "Some final stuff.",
|
| 505 |
+
"text": "Some final stuff."
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"self_ref": "#/texts/28",
|
| 509 |
+
"parent": {
|
| 510 |
+
"$ref": "#/body"
|
| 511 |
+
},
|
| 512 |
+
"children": [],
|
| 513 |
+
"content_layer": "body",
|
| 514 |
+
"label": "text",
|
| 515 |
+
"prov": [],
|
| 516 |
+
"orig": "The end.",
|
| 517 |
+
"text": "The end."
|
| 518 |
+
}
|
| 519 |
+
],
|
| 520 |
+
"pictures": [],
|
| 521 |
+
"tables": [],
|
| 522 |
+
"key_value_items": [],
|
| 523 |
+
"form_items": [],
|
| 524 |
+
"field_regions": [
|
| 525 |
+
{
|
| 526 |
+
"self_ref": "#/field_regions/0",
|
| 527 |
+
"parent": {
|
| 528 |
+
"$ref": "#/body"
|
| 529 |
+
},
|
| 530 |
+
"children": [
|
| 531 |
+
{
|
| 532 |
+
"$ref": "#/texts/0"
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"$ref": "#/field_items/0"
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"$ref": "#/texts/3"
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"$ref": "#/groups/0"
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"$ref": "#/field_items/2"
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"$ref": "#/field_items/3"
|
| 548 |
+
}
|
| 549 |
+
],
|
| 550 |
+
"content_layer": "body",
|
| 551 |
+
"label": "field_region",
|
| 552 |
+
"prov": []
|
| 553 |
+
}
|
| 554 |
+
],
|
| 555 |
+
"field_items": [
|
| 556 |
+
{
|
| 557 |
+
"self_ref": "#/field_items/0",
|
| 558 |
+
"parent": {
|
| 559 |
+
"$ref": "#/field_regions/0"
|
| 560 |
+
},
|
| 561 |
+
"children": [
|
| 562 |
+
{
|
| 563 |
+
"$ref": "#/texts/1"
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"$ref": "#/texts/2"
|
| 567 |
+
}
|
| 568 |
+
],
|
| 569 |
+
"content_layer": "body",
|
| 570 |
+
"label": "field_item",
|
| 571 |
+
"prov": []
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"self_ref": "#/field_items/1",
|
| 575 |
+
"parent": {
|
| 576 |
+
"$ref": "#/groups/0"
|
| 577 |
+
},
|
| 578 |
+
"children": [
|
| 579 |
+
{
|
| 580 |
+
"$ref": "#/texts/4"
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"$ref": "#/texts/5"
|
| 584 |
+
}
|
| 585 |
+
],
|
| 586 |
+
"content_layer": "body",
|
| 587 |
+
"label": "field_item",
|
| 588 |
+
"prov": []
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"self_ref": "#/field_items/2",
|
| 592 |
+
"parent": {
|
| 593 |
+
"$ref": "#/field_regions/0"
|
| 594 |
+
},
|
| 595 |
+
"children": [
|
| 596 |
+
{
|
| 597 |
+
"$ref": "#/texts/6"
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"$ref": "#/texts/7"
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"$ref": "#/texts/8"
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"$ref": "#/texts/9"
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"$ref": "#/texts/14"
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"$ref": "#/groups/2"
|
| 613 |
+
}
|
| 614 |
+
],
|
| 615 |
+
"content_layer": "body",
|
| 616 |
+
"label": "field_item",
|
| 617 |
+
"prov": []
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"self_ref": "#/field_items/3",
|
| 621 |
+
"parent": {
|
| 622 |
+
"$ref": "#/field_regions/0"
|
| 623 |
+
},
|
| 624 |
+
"children": [
|
| 625 |
+
{
|
| 626 |
+
"$ref": "#/texts/19"
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"$ref": "#/texts/20"
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"$ref": "#/texts/22"
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"$ref": "#/texts/24"
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"$ref": "#/texts/26"
|
| 639 |
+
}
|
| 640 |
+
],
|
| 641 |
+
"content_layer": "body",
|
| 642 |
+
"label": "field_item",
|
| 643 |
+
"prov": []
|
| 644 |
+
}
|
| 645 |
+
],
|
| 646 |
+
"pages": {}
|
| 647 |
+
}
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv/reserialized.dclg.xml
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<doclang>
|
| 2 |
+
<field_region>
|
| 3 |
+
<field_heading>KV heading</field_heading>
|
| 4 |
+
<field_item>
|
| 5 |
+
<key>simple key</key>
|
| 6 |
+
<value>simple value</value>
|
| 7 |
+
</field_item>
|
| 8 |
+
<field_heading level="2">KV sub-heading</field_heading>
|
| 9 |
+
<text>
|
| 10 |
+
<field_item>
|
| 11 |
+
<key>
|
| 12 |
+
<content>my inline key1: </content>
|
| 13 |
+
</key>
|
| 14 |
+
<value class="fillable">my inline value1</value>
|
| 15 |
+
</field_item>
|
| 16 |
+
</text>
|
| 17 |
+
<field_item>
|
| 18 |
+
<key>name</key>
|
| 19 |
+
<value class="fillable">John Doe</value>
|
| 20 |
+
<value class="fillable">Max Mustermann</value>
|
| 21 |
+
<value class="fillable">
|
| 22 |
+
<checkbox class="unselected"/>
|
| 23 |
+
<content>Clark </content>
|
| 24 |
+
<bold>Kent</bold>
|
| 25 |
+
<hint>Select this if you are a Superman fan</hint>
|
| 26 |
+
</value>
|
| 27 |
+
<value></value>
|
| 28 |
+
<text>
|
| 29 |
+
<content>My first input </content>
|
| 30 |
+
<value class="fillable"></value>
|
| 31 |
+
<content> and my second input </content>
|
| 32 |
+
<value class="fillable">m</value>
|
| 33 |
+
</text>
|
| 34 |
+
</field_item>
|
| 35 |
+
<field_item>
|
| 36 |
+
<key>
|
| 37 |
+
<content>I am in the country as a: </content>
|
| 38 |
+
</key>
|
| 39 |
+
<value class="fillable">
|
| 40 |
+
<checkbox class="unselected"/>
|
| 41 |
+
Visitor
|
| 42 |
+
</value>
|
| 43 |
+
<value class="fillable">
|
| 44 |
+
<checkbox class="unselected"/>
|
| 45 |
+
<content> Student</content>
|
| 46 |
+
</value>
|
| 47 |
+
<value class="fillable">
|
| 48 |
+
<checkbox class="unselected"/>
|
| 49 |
+
Other (Specify)
|
| 50 |
+
</value>
|
| 51 |
+
<value class="fillable"></value>
|
| 52 |
+
</field_item>
|
| 53 |
+
</field_region>
|
| 54 |
+
<text>Some final stuff.</text>
|
| 55 |
+
<text>The end.</text>
|
| 56 |
+
</doclang>
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv/serialized.dclg.xml
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<doclang>
|
| 2 |
+
<field_region>
|
| 3 |
+
<field_heading>KV heading</field_heading>
|
| 4 |
+
<field_item>
|
| 5 |
+
<key>simple key</key>
|
| 6 |
+
<value>simple value</value>
|
| 7 |
+
</field_item>
|
| 8 |
+
<field_heading level="2">KV sub-heading</field_heading>
|
| 9 |
+
<text>
|
| 10 |
+
<field_item>
|
| 11 |
+
<key>
|
| 12 |
+
<content>my inline key1: </content>
|
| 13 |
+
</key>
|
| 14 |
+
<value class="fillable">my inline value1</value>
|
| 15 |
+
</field_item>
|
| 16 |
+
</text>
|
| 17 |
+
<field_item>
|
| 18 |
+
<key>name</key>
|
| 19 |
+
<value class="fillable">John Doe</value>
|
| 20 |
+
<value class="fillable">Max Mustermann</value>
|
| 21 |
+
<value class="fillable">
|
| 22 |
+
<checkbox class="unselected"/>
|
| 23 |
+
<content>Clark </content>
|
| 24 |
+
<bold>Kent</bold>
|
| 25 |
+
<hint>Select this if you are a Superman fan</hint>
|
| 26 |
+
</value>
|
| 27 |
+
<value></value>
|
| 28 |
+
<text>
|
| 29 |
+
<content>My first input </content>
|
| 30 |
+
<value class="fillable"></value>
|
| 31 |
+
<content> and my second input </content>
|
| 32 |
+
<value class="fillable">m</value>
|
| 33 |
+
</text>
|
| 34 |
+
</field_item>
|
| 35 |
+
<field_item>
|
| 36 |
+
<key>
|
| 37 |
+
<content>I am in the country as a: </content>
|
| 38 |
+
</key>
|
| 39 |
+
<value class="fillable">
|
| 40 |
+
<checkbox class="unselected"/>
|
| 41 |
+
Visitor
|
| 42 |
+
</value>
|
| 43 |
+
<value class="fillable">
|
| 44 |
+
<checkbox class="unselected"/>
|
| 45 |
+
<content> Student</content>
|
| 46 |
+
</value>
|
| 47 |
+
<value class="fillable">
|
| 48 |
+
<checkbox class="unselected"/>
|
| 49 |
+
Other (Specify)
|
| 50 |
+
</value>
|
| 51 |
+
<value class="fillable"></value>
|
| 52 |
+
</field_item>
|
| 53 |
+
</field_region>
|
| 54 |
+
<text>Some final stuff.</text>
|
| 55 |
+
<text>The end.</text>
|
| 56 |
+
</doclang>
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_name": "DoclingDocument",
|
| 3 |
+
"version": "1.10.0",
|
| 4 |
+
"name": "Document",
|
| 5 |
+
"furniture": {
|
| 6 |
+
"self_ref": "#/furniture",
|
| 7 |
+
"children": [],
|
| 8 |
+
"content_layer": "furniture",
|
| 9 |
+
"name": "_root_",
|
| 10 |
+
"label": "unspecified"
|
| 11 |
+
},
|
| 12 |
+
"body": {
|
| 13 |
+
"self_ref": "#/body",
|
| 14 |
+
"children": [
|
| 15 |
+
{
|
| 16 |
+
"$ref": "#/field_regions/0"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"$ref": "#/field_regions/1"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"$ref": "#/field_regions/2"
|
| 23 |
+
}
|
| 24 |
+
],
|
| 25 |
+
"content_layer": "body",
|
| 26 |
+
"name": "_root_",
|
| 27 |
+
"label": "unspecified"
|
| 28 |
+
},
|
| 29 |
+
"groups": [
|
| 30 |
+
{
|
| 31 |
+
"self_ref": "#/groups/0",
|
| 32 |
+
"parent": {
|
| 33 |
+
"$ref": "#/field_regions/1"
|
| 34 |
+
},
|
| 35 |
+
"children": [
|
| 36 |
+
{
|
| 37 |
+
"$ref": "#/field_items/2"
|
| 38 |
+
}
|
| 39 |
+
],
|
| 40 |
+
"content_layer": "body",
|
| 41 |
+
"name": "group",
|
| 42 |
+
"label": "inline"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"self_ref": "#/groups/1",
|
| 46 |
+
"parent": {
|
| 47 |
+
"$ref": "#/field_regions/1"
|
| 48 |
+
},
|
| 49 |
+
"children": [
|
| 50 |
+
{
|
| 51 |
+
"$ref": "#/field_items/3"
|
| 52 |
+
}
|
| 53 |
+
],
|
| 54 |
+
"content_layer": "body",
|
| 55 |
+
"name": "group",
|
| 56 |
+
"label": "inline"
|
| 57 |
+
}
|
| 58 |
+
],
|
| 59 |
+
"texts": [
|
| 60 |
+
{
|
| 61 |
+
"self_ref": "#/texts/0",
|
| 62 |
+
"parent": {
|
| 63 |
+
"$ref": "#/field_items/0"
|
| 64 |
+
},
|
| 65 |
+
"children": [
|
| 66 |
+
{
|
| 67 |
+
"$ref": "#/pictures/0"
|
| 68 |
+
}
|
| 69 |
+
],
|
| 70 |
+
"content_layer": "body",
|
| 71 |
+
"label": "field_key",
|
| 72 |
+
"prov": [],
|
| 73 |
+
"orig": "",
|
| 74 |
+
"text": ""
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"self_ref": "#/texts/1",
|
| 78 |
+
"parent": {
|
| 79 |
+
"$ref": "#/field_items/0"
|
| 80 |
+
},
|
| 81 |
+
"children": [],
|
| 82 |
+
"content_layer": "body",
|
| 83 |
+
"label": "field_value",
|
| 84 |
+
"prov": [],
|
| 85 |
+
"orig": "+123-456-7890",
|
| 86 |
+
"text": "+123-456-7890",
|
| 87 |
+
"kind": "read_only"
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"self_ref": "#/texts/2",
|
| 91 |
+
"parent": {
|
| 92 |
+
"$ref": "#/field_items/1"
|
| 93 |
+
},
|
| 94 |
+
"children": [
|
| 95 |
+
{
|
| 96 |
+
"$ref": "#/pictures/1"
|
| 97 |
+
}
|
| 98 |
+
],
|
| 99 |
+
"content_layer": "body",
|
| 100 |
+
"label": "field_key",
|
| 101 |
+
"prov": [],
|
| 102 |
+
"orig": "",
|
| 103 |
+
"text": ""
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"self_ref": "#/texts/3",
|
| 107 |
+
"parent": {
|
| 108 |
+
"$ref": "#/field_items/1"
|
| 109 |
+
},
|
| 110 |
+
"children": [],
|
| 111 |
+
"content_layer": "body",
|
| 112 |
+
"label": "field_value",
|
| 113 |
+
"prov": [],
|
| 114 |
+
"orig": "hello@example.com",
|
| 115 |
+
"text": "hello@example.com",
|
| 116 |
+
"kind": "read_only"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"self_ref": "#/texts/4",
|
| 120 |
+
"parent": {
|
| 121 |
+
"$ref": "#/field_items/2"
|
| 122 |
+
},
|
| 123 |
+
"children": [],
|
| 124 |
+
"content_layer": "body",
|
| 125 |
+
"label": "field_key",
|
| 126 |
+
"prov": [],
|
| 127 |
+
"orig": "Invoice No: ",
|
| 128 |
+
"text": "Invoice No: "
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"self_ref": "#/texts/5",
|
| 132 |
+
"parent": {
|
| 133 |
+
"$ref": "#/field_items/2"
|
| 134 |
+
},
|
| 135 |
+
"children": [],
|
| 136 |
+
"content_layer": "body",
|
| 137 |
+
"label": "field_value",
|
| 138 |
+
"prov": [],
|
| 139 |
+
"orig": "222",
|
| 140 |
+
"text": "222",
|
| 141 |
+
"kind": "read_only"
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"self_ref": "#/texts/6",
|
| 145 |
+
"parent": {
|
| 146 |
+
"$ref": "#/field_items/3"
|
| 147 |
+
},
|
| 148 |
+
"children": [],
|
| 149 |
+
"content_layer": "body",
|
| 150 |
+
"label": "field_key",
|
| 151 |
+
"prov": [],
|
| 152 |
+
"orig": "Date: ",
|
| 153 |
+
"text": "Date: "
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"self_ref": "#/texts/7",
|
| 157 |
+
"parent": {
|
| 158 |
+
"$ref": "#/field_items/3"
|
| 159 |
+
},
|
| 160 |
+
"children": [],
|
| 161 |
+
"content_layer": "body",
|
| 162 |
+
"label": "field_value",
|
| 163 |
+
"prov": [],
|
| 164 |
+
"orig": "02 May, 2021",
|
| 165 |
+
"text": "02 May, 2021",
|
| 166 |
+
"kind": "read_only"
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"self_ref": "#/texts/8",
|
| 170 |
+
"parent": {
|
| 171 |
+
"$ref": "#/field_items/4"
|
| 172 |
+
},
|
| 173 |
+
"children": [],
|
| 174 |
+
"content_layer": "body",
|
| 175 |
+
"label": "field_key",
|
| 176 |
+
"prov": [
|
| 177 |
+
{
|
| 178 |
+
"page_no": 1,
|
| 179 |
+
"bbox": {
|
| 180 |
+
"l": 5.0,
|
| 181 |
+
"t": 492.0,
|
| 182 |
+
"r": 15.0,
|
| 183 |
+
"b": 502.0,
|
| 184 |
+
"coord_origin": "TOPLEFT"
|
| 185 |
+
},
|
| 186 |
+
"charspan": [
|
| 187 |
+
0,
|
| 188 |
+
13
|
| 189 |
+
]
|
| 190 |
+
}
|
| 191 |
+
],
|
| 192 |
+
"orig": "Administrator",
|
| 193 |
+
"text": "Administrator"
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"self_ref": "#/texts/9",
|
| 197 |
+
"parent": {
|
| 198 |
+
"$ref": "#/field_items/4"
|
| 199 |
+
},
|
| 200 |
+
"children": [],
|
| 201 |
+
"content_layer": "body",
|
| 202 |
+
"label": "field_value",
|
| 203 |
+
"prov": [
|
| 204 |
+
{
|
| 205 |
+
"page_no": 1,
|
| 206 |
+
"bbox": {
|
| 207 |
+
"l": 5.0,
|
| 208 |
+
"t": 492.0,
|
| 209 |
+
"r": 15.0,
|
| 210 |
+
"b": 502.0,
|
| 211 |
+
"coord_origin": "TOPLEFT"
|
| 212 |
+
},
|
| 213 |
+
"charspan": [
|
| 214 |
+
0,
|
| 215 |
+
8
|
| 216 |
+
]
|
| 217 |
+
}
|
| 218 |
+
],
|
| 219 |
+
"orig": "John Doe",
|
| 220 |
+
"text": "John Doe",
|
| 221 |
+
"kind": "read_only"
|
| 222 |
+
}
|
| 223 |
+
],
|
| 224 |
+
"pictures": [
|
| 225 |
+
{
|
| 226 |
+
"self_ref": "#/pictures/0",
|
| 227 |
+
"parent": {
|
| 228 |
+
"$ref": "#/texts/0"
|
| 229 |
+
},
|
| 230 |
+
"children": [],
|
| 231 |
+
"content_layer": "body",
|
| 232 |
+
"label": "picture",
|
| 233 |
+
"prov": [],
|
| 234 |
+
"captions": [],
|
| 235 |
+
"references": [],
|
| 236 |
+
"footnotes": [],
|
| 237 |
+
"annotations": []
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"self_ref": "#/pictures/1",
|
| 241 |
+
"parent": {
|
| 242 |
+
"$ref": "#/texts/2"
|
| 243 |
+
},
|
| 244 |
+
"children": [],
|
| 245 |
+
"content_layer": "body",
|
| 246 |
+
"label": "picture",
|
| 247 |
+
"prov": [],
|
| 248 |
+
"captions": [],
|
| 249 |
+
"references": [],
|
| 250 |
+
"footnotes": [],
|
| 251 |
+
"annotations": []
|
| 252 |
+
}
|
| 253 |
+
],
|
| 254 |
+
"tables": [],
|
| 255 |
+
"key_value_items": [],
|
| 256 |
+
"form_items": [],
|
| 257 |
+
"field_regions": [
|
| 258 |
+
{
|
| 259 |
+
"self_ref": "#/field_regions/0",
|
| 260 |
+
"parent": {
|
| 261 |
+
"$ref": "#/body"
|
| 262 |
+
},
|
| 263 |
+
"children": [
|
| 264 |
+
{
|
| 265 |
+
"$ref": "#/field_items/0"
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"$ref": "#/field_items/1"
|
| 269 |
+
}
|
| 270 |
+
],
|
| 271 |
+
"content_layer": "body",
|
| 272 |
+
"label": "field_region",
|
| 273 |
+
"prov": [
|
| 274 |
+
{
|
| 275 |
+
"page_no": 1,
|
| 276 |
+
"bbox": {
|
| 277 |
+
"l": 5.0,
|
| 278 |
+
"t": 492.0,
|
| 279 |
+
"r": 15.0,
|
| 280 |
+
"b": 502.0,
|
| 281 |
+
"coord_origin": "TOPLEFT"
|
| 282 |
+
},
|
| 283 |
+
"charspan": [
|
| 284 |
+
0,
|
| 285 |
+
0
|
| 286 |
+
]
|
| 287 |
+
}
|
| 288 |
+
]
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"self_ref": "#/field_regions/1",
|
| 292 |
+
"parent": {
|
| 293 |
+
"$ref": "#/body"
|
| 294 |
+
},
|
| 295 |
+
"children": [
|
| 296 |
+
{
|
| 297 |
+
"$ref": "#/groups/0"
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"$ref": "#/groups/1"
|
| 301 |
+
}
|
| 302 |
+
],
|
| 303 |
+
"content_layer": "body",
|
| 304 |
+
"label": "field_region",
|
| 305 |
+
"prov": []
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"self_ref": "#/field_regions/2",
|
| 309 |
+
"parent": {
|
| 310 |
+
"$ref": "#/body"
|
| 311 |
+
},
|
| 312 |
+
"children": [
|
| 313 |
+
{
|
| 314 |
+
"$ref": "#/field_items/4"
|
| 315 |
+
}
|
| 316 |
+
],
|
| 317 |
+
"content_layer": "body",
|
| 318 |
+
"label": "field_region",
|
| 319 |
+
"prov": []
|
| 320 |
+
}
|
| 321 |
+
],
|
| 322 |
+
"field_items": [
|
| 323 |
+
{
|
| 324 |
+
"self_ref": "#/field_items/0",
|
| 325 |
+
"parent": {
|
| 326 |
+
"$ref": "#/field_regions/0"
|
| 327 |
+
},
|
| 328 |
+
"children": [
|
| 329 |
+
{
|
| 330 |
+
"$ref": "#/texts/0"
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"$ref": "#/texts/1"
|
| 334 |
+
}
|
| 335 |
+
],
|
| 336 |
+
"content_layer": "body",
|
| 337 |
+
"label": "field_item",
|
| 338 |
+
"prov": []
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"self_ref": "#/field_items/1",
|
| 342 |
+
"parent": {
|
| 343 |
+
"$ref": "#/field_regions/0"
|
| 344 |
+
},
|
| 345 |
+
"children": [
|
| 346 |
+
{
|
| 347 |
+
"$ref": "#/texts/2"
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"$ref": "#/texts/3"
|
| 351 |
+
}
|
| 352 |
+
],
|
| 353 |
+
"content_layer": "body",
|
| 354 |
+
"label": "field_item",
|
| 355 |
+
"prov": []
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"self_ref": "#/field_items/2",
|
| 359 |
+
"parent": {
|
| 360 |
+
"$ref": "#/groups/0"
|
| 361 |
+
},
|
| 362 |
+
"children": [
|
| 363 |
+
{
|
| 364 |
+
"$ref": "#/texts/4"
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"$ref": "#/texts/5"
|
| 368 |
+
}
|
| 369 |
+
],
|
| 370 |
+
"content_layer": "body",
|
| 371 |
+
"label": "field_item",
|
| 372 |
+
"prov": []
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"self_ref": "#/field_items/3",
|
| 376 |
+
"parent": {
|
| 377 |
+
"$ref": "#/groups/1"
|
| 378 |
+
},
|
| 379 |
+
"children": [
|
| 380 |
+
{
|
| 381 |
+
"$ref": "#/texts/6"
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"$ref": "#/texts/7"
|
| 385 |
+
}
|
| 386 |
+
],
|
| 387 |
+
"content_layer": "body",
|
| 388 |
+
"label": "field_item",
|
| 389 |
+
"prov": []
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"self_ref": "#/field_items/4",
|
| 393 |
+
"parent": {
|
| 394 |
+
"$ref": "#/field_regions/2"
|
| 395 |
+
},
|
| 396 |
+
"children": [
|
| 397 |
+
{
|
| 398 |
+
"$ref": "#/texts/8"
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"$ref": "#/texts/9"
|
| 402 |
+
}
|
| 403 |
+
],
|
| 404 |
+
"content_layer": "body",
|
| 405 |
+
"label": "field_item",
|
| 406 |
+
"prov": []
|
| 407 |
+
}
|
| 408 |
+
],
|
| 409 |
+
"pages": {
|
| 410 |
+
"1": {
|
| 411 |
+
"size": {
|
| 412 |
+
"width": 512.0,
|
| 413 |
+
"height": 512.0
|
| 414 |
+
},
|
| 415 |
+
"page_no": 1
|
| 416 |
+
}
|
| 417 |
+
}
|
| 418 |
+
}
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv_invoice/input.json
ADDED
|
@@ -0,0 +1,436 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_name": "DoclingDocument",
|
| 3 |
+
"version": "1.10.0",
|
| 4 |
+
"name": "",
|
| 5 |
+
"furniture": {
|
| 6 |
+
"self_ref": "#/furniture",
|
| 7 |
+
"children": [],
|
| 8 |
+
"content_layer": "furniture",
|
| 9 |
+
"name": "_root_",
|
| 10 |
+
"label": "unspecified"
|
| 11 |
+
},
|
| 12 |
+
"body": {
|
| 13 |
+
"self_ref": "#/body",
|
| 14 |
+
"children": [
|
| 15 |
+
{
|
| 16 |
+
"$ref": "#/field_regions/0"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"$ref": "#/field_regions/1"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"$ref": "#/field_regions/2"
|
| 23 |
+
}
|
| 24 |
+
],
|
| 25 |
+
"content_layer": "body",
|
| 26 |
+
"name": "_root_",
|
| 27 |
+
"label": "unspecified"
|
| 28 |
+
},
|
| 29 |
+
"groups": [
|
| 30 |
+
{
|
| 31 |
+
"self_ref": "#/groups/0",
|
| 32 |
+
"parent": {
|
| 33 |
+
"$ref": "#/field_regions/1"
|
| 34 |
+
},
|
| 35 |
+
"children": [
|
| 36 |
+
{
|
| 37 |
+
"$ref": "#/field_items/2"
|
| 38 |
+
}
|
| 39 |
+
],
|
| 40 |
+
"content_layer": "body",
|
| 41 |
+
"name": "group",
|
| 42 |
+
"label": "inline"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"self_ref": "#/groups/1",
|
| 46 |
+
"parent": {
|
| 47 |
+
"$ref": "#/field_regions/1"
|
| 48 |
+
},
|
| 49 |
+
"children": [
|
| 50 |
+
{
|
| 51 |
+
"$ref": "#/field_items/3"
|
| 52 |
+
}
|
| 53 |
+
],
|
| 54 |
+
"content_layer": "body",
|
| 55 |
+
"name": "group",
|
| 56 |
+
"label": "inline"
|
| 57 |
+
}
|
| 58 |
+
],
|
| 59 |
+
"texts": [
|
| 60 |
+
{
|
| 61 |
+
"self_ref": "#/texts/0",
|
| 62 |
+
"parent": {
|
| 63 |
+
"$ref": "#/field_items/0"
|
| 64 |
+
},
|
| 65 |
+
"children": [
|
| 66 |
+
{
|
| 67 |
+
"$ref": "#/pictures/0"
|
| 68 |
+
}
|
| 69 |
+
],
|
| 70 |
+
"content_layer": "body",
|
| 71 |
+
"label": "field_key",
|
| 72 |
+
"prov": [],
|
| 73 |
+
"orig": "",
|
| 74 |
+
"text": ""
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"self_ref": "#/texts/1",
|
| 78 |
+
"parent": {
|
| 79 |
+
"$ref": "#/field_items/0"
|
| 80 |
+
},
|
| 81 |
+
"children": [],
|
| 82 |
+
"content_layer": "body",
|
| 83 |
+
"label": "field_value",
|
| 84 |
+
"prov": [],
|
| 85 |
+
"orig": "+123-456-7890",
|
| 86 |
+
"text": "+123-456-7890",
|
| 87 |
+
"kind": "read_only"
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"self_ref": "#/texts/2",
|
| 91 |
+
"parent": {
|
| 92 |
+
"$ref": "#/field_items/1"
|
| 93 |
+
},
|
| 94 |
+
"children": [
|
| 95 |
+
{
|
| 96 |
+
"$ref": "#/pictures/1"
|
| 97 |
+
}
|
| 98 |
+
],
|
| 99 |
+
"content_layer": "body",
|
| 100 |
+
"label": "field_key",
|
| 101 |
+
"prov": [],
|
| 102 |
+
"orig": "",
|
| 103 |
+
"text": ""
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"self_ref": "#/texts/3",
|
| 107 |
+
"parent": {
|
| 108 |
+
"$ref": "#/field_items/1"
|
| 109 |
+
},
|
| 110 |
+
"children": [],
|
| 111 |
+
"content_layer": "body",
|
| 112 |
+
"label": "field_value",
|
| 113 |
+
"prov": [],
|
| 114 |
+
"orig": "hello@example.com",
|
| 115 |
+
"text": "hello@example.com",
|
| 116 |
+
"kind": "read_only"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"self_ref": "#/texts/4",
|
| 120 |
+
"parent": {
|
| 121 |
+
"$ref": "#/field_items/2"
|
| 122 |
+
},
|
| 123 |
+
"children": [],
|
| 124 |
+
"content_layer": "body",
|
| 125 |
+
"label": "field_key",
|
| 126 |
+
"prov": [],
|
| 127 |
+
"orig": "Invoice No: ",
|
| 128 |
+
"text": "Invoice No: "
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"self_ref": "#/texts/5",
|
| 132 |
+
"parent": {
|
| 133 |
+
"$ref": "#/field_items/2"
|
| 134 |
+
},
|
| 135 |
+
"children": [],
|
| 136 |
+
"content_layer": "body",
|
| 137 |
+
"label": "field_value",
|
| 138 |
+
"prov": [],
|
| 139 |
+
"orig": "222",
|
| 140 |
+
"text": "222",
|
| 141 |
+
"kind": "read_only"
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"self_ref": "#/texts/6",
|
| 145 |
+
"parent": {
|
| 146 |
+
"$ref": "#/field_items/3"
|
| 147 |
+
},
|
| 148 |
+
"children": [],
|
| 149 |
+
"content_layer": "body",
|
| 150 |
+
"label": "field_key",
|
| 151 |
+
"prov": [],
|
| 152 |
+
"orig": "Date: ",
|
| 153 |
+
"text": "Date: "
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"self_ref": "#/texts/7",
|
| 157 |
+
"parent": {
|
| 158 |
+
"$ref": "#/field_items/3"
|
| 159 |
+
},
|
| 160 |
+
"children": [],
|
| 161 |
+
"content_layer": "body",
|
| 162 |
+
"label": "field_value",
|
| 163 |
+
"prov": [],
|
| 164 |
+
"orig": "02 May, 2021",
|
| 165 |
+
"text": "02 May, 2021",
|
| 166 |
+
"kind": "read_only"
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"self_ref": "#/texts/8",
|
| 170 |
+
"parent": {
|
| 171 |
+
"$ref": "#/field_items/4"
|
| 172 |
+
},
|
| 173 |
+
"children": [],
|
| 174 |
+
"content_layer": "body",
|
| 175 |
+
"label": "field_key",
|
| 176 |
+
"prov": [
|
| 177 |
+
{
|
| 178 |
+
"page_no": 1,
|
| 179 |
+
"bbox": {
|
| 180 |
+
"l": 1.0,
|
| 181 |
+
"t": 4.0,
|
| 182 |
+
"r": 3.0,
|
| 183 |
+
"b": 2.0,
|
| 184 |
+
"coord_origin": "BOTTOMLEFT"
|
| 185 |
+
},
|
| 186 |
+
"charspan": [
|
| 187 |
+
0,
|
| 188 |
+
2
|
| 189 |
+
]
|
| 190 |
+
}
|
| 191 |
+
],
|
| 192 |
+
"orig": "Administrator",
|
| 193 |
+
"text": "Administrator"
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"self_ref": "#/texts/9",
|
| 197 |
+
"parent": {
|
| 198 |
+
"$ref": "#/field_items/4"
|
| 199 |
+
},
|
| 200 |
+
"children": [],
|
| 201 |
+
"content_layer": "body",
|
| 202 |
+
"label": "field_value",
|
| 203 |
+
"prov": [
|
| 204 |
+
{
|
| 205 |
+
"page_no": 1,
|
| 206 |
+
"bbox": {
|
| 207 |
+
"l": 1.0,
|
| 208 |
+
"t": 4.0,
|
| 209 |
+
"r": 3.0,
|
| 210 |
+
"b": 2.0,
|
| 211 |
+
"coord_origin": "BOTTOMLEFT"
|
| 212 |
+
},
|
| 213 |
+
"charspan": [
|
| 214 |
+
0,
|
| 215 |
+
2
|
| 216 |
+
]
|
| 217 |
+
}
|
| 218 |
+
],
|
| 219 |
+
"orig": "John Doe",
|
| 220 |
+
"text": "John Doe",
|
| 221 |
+
"kind": "read_only"
|
| 222 |
+
}
|
| 223 |
+
],
|
| 224 |
+
"pictures": [
|
| 225 |
+
{
|
| 226 |
+
"self_ref": "#/pictures/0",
|
| 227 |
+
"parent": {
|
| 228 |
+
"$ref": "#/texts/0"
|
| 229 |
+
},
|
| 230 |
+
"children": [],
|
| 231 |
+
"content_layer": "body",
|
| 232 |
+
"label": "picture",
|
| 233 |
+
"prov": [],
|
| 234 |
+
"captions": [],
|
| 235 |
+
"references": [],
|
| 236 |
+
"footnotes": [],
|
| 237 |
+
"image": {
|
| 238 |
+
"mimetype": "image/png",
|
| 239 |
+
"dpi": 300,
|
| 240 |
+
"size": {
|
| 241 |
+
"width": 100.0,
|
| 242 |
+
"height": 100.0
|
| 243 |
+
},
|
| 244 |
+
"uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII="
|
| 245 |
+
},
|
| 246 |
+
"annotations": []
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"self_ref": "#/pictures/1",
|
| 250 |
+
"parent": {
|
| 251 |
+
"$ref": "#/texts/2"
|
| 252 |
+
},
|
| 253 |
+
"children": [],
|
| 254 |
+
"content_layer": "body",
|
| 255 |
+
"label": "picture",
|
| 256 |
+
"prov": [],
|
| 257 |
+
"captions": [],
|
| 258 |
+
"references": [],
|
| 259 |
+
"footnotes": [],
|
| 260 |
+
"image": {
|
| 261 |
+
"mimetype": "image/png",
|
| 262 |
+
"dpi": 300,
|
| 263 |
+
"size": {
|
| 264 |
+
"width": 100.0,
|
| 265 |
+
"height": 100.0
|
| 266 |
+
},
|
| 267 |
+
"uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAC0lEQVR4nGNgQAYAAA4AAamRc7EAAAAASUVORK5CYII="
|
| 268 |
+
},
|
| 269 |
+
"annotations": []
|
| 270 |
+
}
|
| 271 |
+
],
|
| 272 |
+
"tables": [],
|
| 273 |
+
"key_value_items": [],
|
| 274 |
+
"form_items": [],
|
| 275 |
+
"field_regions": [
|
| 276 |
+
{
|
| 277 |
+
"self_ref": "#/field_regions/0",
|
| 278 |
+
"parent": {
|
| 279 |
+
"$ref": "#/body"
|
| 280 |
+
},
|
| 281 |
+
"children": [
|
| 282 |
+
{
|
| 283 |
+
"$ref": "#/field_items/0"
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"$ref": "#/field_items/1"
|
| 287 |
+
}
|
| 288 |
+
],
|
| 289 |
+
"content_layer": "body",
|
| 290 |
+
"label": "field_region",
|
| 291 |
+
"prov": [
|
| 292 |
+
{
|
| 293 |
+
"page_no": 1,
|
| 294 |
+
"bbox": {
|
| 295 |
+
"l": 1.0,
|
| 296 |
+
"t": 4.0,
|
| 297 |
+
"r": 3.0,
|
| 298 |
+
"b": 2.0,
|
| 299 |
+
"coord_origin": "BOTTOMLEFT"
|
| 300 |
+
},
|
| 301 |
+
"charspan": [
|
| 302 |
+
0,
|
| 303 |
+
2
|
| 304 |
+
]
|
| 305 |
+
}
|
| 306 |
+
]
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"self_ref": "#/field_regions/1",
|
| 310 |
+
"parent": {
|
| 311 |
+
"$ref": "#/body"
|
| 312 |
+
},
|
| 313 |
+
"children": [
|
| 314 |
+
{
|
| 315 |
+
"$ref": "#/groups/0"
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"$ref": "#/groups/1"
|
| 319 |
+
}
|
| 320 |
+
],
|
| 321 |
+
"content_layer": "body",
|
| 322 |
+
"label": "field_region",
|
| 323 |
+
"prov": []
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"self_ref": "#/field_regions/2",
|
| 327 |
+
"parent": {
|
| 328 |
+
"$ref": "#/body"
|
| 329 |
+
},
|
| 330 |
+
"children": [
|
| 331 |
+
{
|
| 332 |
+
"$ref": "#/field_items/4"
|
| 333 |
+
}
|
| 334 |
+
],
|
| 335 |
+
"content_layer": "body",
|
| 336 |
+
"label": "field_region",
|
| 337 |
+
"prov": []
|
| 338 |
+
}
|
| 339 |
+
],
|
| 340 |
+
"field_items": [
|
| 341 |
+
{
|
| 342 |
+
"self_ref": "#/field_items/0",
|
| 343 |
+
"parent": {
|
| 344 |
+
"$ref": "#/field_regions/0"
|
| 345 |
+
},
|
| 346 |
+
"children": [
|
| 347 |
+
{
|
| 348 |
+
"$ref": "#/texts/0"
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"$ref": "#/texts/1"
|
| 352 |
+
}
|
| 353 |
+
],
|
| 354 |
+
"content_layer": "body",
|
| 355 |
+
"label": "field_item",
|
| 356 |
+
"prov": []
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"self_ref": "#/field_items/1",
|
| 360 |
+
"parent": {
|
| 361 |
+
"$ref": "#/field_regions/0"
|
| 362 |
+
},
|
| 363 |
+
"children": [
|
| 364 |
+
{
|
| 365 |
+
"$ref": "#/texts/2"
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"$ref": "#/texts/3"
|
| 369 |
+
}
|
| 370 |
+
],
|
| 371 |
+
"content_layer": "body",
|
| 372 |
+
"label": "field_item",
|
| 373 |
+
"prov": []
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"self_ref": "#/field_items/2",
|
| 377 |
+
"parent": {
|
| 378 |
+
"$ref": "#/groups/0"
|
| 379 |
+
},
|
| 380 |
+
"children": [
|
| 381 |
+
{
|
| 382 |
+
"$ref": "#/texts/4"
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"$ref": "#/texts/5"
|
| 386 |
+
}
|
| 387 |
+
],
|
| 388 |
+
"content_layer": "body",
|
| 389 |
+
"label": "field_item",
|
| 390 |
+
"prov": []
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"self_ref": "#/field_items/3",
|
| 394 |
+
"parent": {
|
| 395 |
+
"$ref": "#/groups/1"
|
| 396 |
+
},
|
| 397 |
+
"children": [
|
| 398 |
+
{
|
| 399 |
+
"$ref": "#/texts/6"
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"$ref": "#/texts/7"
|
| 403 |
+
}
|
| 404 |
+
],
|
| 405 |
+
"content_layer": "body",
|
| 406 |
+
"label": "field_item",
|
| 407 |
+
"prov": []
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"self_ref": "#/field_items/4",
|
| 411 |
+
"parent": {
|
| 412 |
+
"$ref": "#/field_regions/2"
|
| 413 |
+
},
|
| 414 |
+
"children": [
|
| 415 |
+
{
|
| 416 |
+
"$ref": "#/texts/8"
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"$ref": "#/texts/9"
|
| 420 |
+
}
|
| 421 |
+
],
|
| 422 |
+
"content_layer": "body",
|
| 423 |
+
"label": "field_item",
|
| 424 |
+
"prov": []
|
| 425 |
+
}
|
| 426 |
+
],
|
| 427 |
+
"pages": {
|
| 428 |
+
"1": {
|
| 429 |
+
"size": {
|
| 430 |
+
"width": 100.0,
|
| 431 |
+
"height": 100.0
|
| 432 |
+
},
|
| 433 |
+
"page_no": 1
|
| 434 |
+
}
|
| 435 |
+
}
|
| 436 |
+
}
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv_invoice/reserialized.dclg.xml
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<doclang>
|
| 2 |
+
<field_region>
|
| 3 |
+
<location value="5"/>
|
| 4 |
+
<location value="492"/>
|
| 5 |
+
<location value="15"/>
|
| 6 |
+
<location value="502"/>
|
| 7 |
+
<field_item>
|
| 8 |
+
<key>
|
| 9 |
+
<picture></picture>
|
| 10 |
+
</key>
|
| 11 |
+
<value>+123-456-7890</value>
|
| 12 |
+
</field_item>
|
| 13 |
+
<field_item>
|
| 14 |
+
<key>
|
| 15 |
+
<picture></picture>
|
| 16 |
+
</key>
|
| 17 |
+
<value>hello@example.com</value>
|
| 18 |
+
</field_item>
|
| 19 |
+
</field_region>
|
| 20 |
+
<field_region>
|
| 21 |
+
<text>
|
| 22 |
+
<field_item>
|
| 23 |
+
<key>
|
| 24 |
+
<content>Invoice No: </content>
|
| 25 |
+
</key>
|
| 26 |
+
<value>222</value>
|
| 27 |
+
</field_item>
|
| 28 |
+
</text>
|
| 29 |
+
<text>
|
| 30 |
+
<field_item>
|
| 31 |
+
<key>
|
| 32 |
+
<content>Date: </content>
|
| 33 |
+
</key>
|
| 34 |
+
<value>02 May, 2021</value>
|
| 35 |
+
</field_item>
|
| 36 |
+
</text>
|
| 37 |
+
</field_region>
|
| 38 |
+
<field_region>
|
| 39 |
+
<field_item>
|
| 40 |
+
<key>
|
| 41 |
+
<location value="5"/>
|
| 42 |
+
<location value="492"/>
|
| 43 |
+
<location value="15"/>
|
| 44 |
+
<location value="502"/>
|
| 45 |
+
Administrator
|
| 46 |
+
</key>
|
| 47 |
+
<value>
|
| 48 |
+
<location value="5"/>
|
| 49 |
+
<location value="492"/>
|
| 50 |
+
<location value="15"/>
|
| 51 |
+
<location value="502"/>
|
| 52 |
+
John Doe
|
| 53 |
+
</value>
|
| 54 |
+
</field_item>
|
| 55 |
+
</field_region>
|
| 56 |
+
</doclang>
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv_invoice/serialized.dclg.xml
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<doclang>
|
| 2 |
+
<field_region>
|
| 3 |
+
<location value="5"/>
|
| 4 |
+
<location value="492"/>
|
| 5 |
+
<location value="15"/>
|
| 6 |
+
<location value="502"/>
|
| 7 |
+
<field_item>
|
| 8 |
+
<key>
|
| 9 |
+
<picture></picture>
|
| 10 |
+
</key>
|
| 11 |
+
<value>+123-456-7890</value>
|
| 12 |
+
</field_item>
|
| 13 |
+
<field_item>
|
| 14 |
+
<key>
|
| 15 |
+
<picture></picture>
|
| 16 |
+
</key>
|
| 17 |
+
<value>hello@example.com</value>
|
| 18 |
+
</field_item>
|
| 19 |
+
</field_region>
|
| 20 |
+
<field_region>
|
| 21 |
+
<text>
|
| 22 |
+
<field_item>
|
| 23 |
+
<key>
|
| 24 |
+
<content>Invoice No: </content>
|
| 25 |
+
</key>
|
| 26 |
+
<value>222</value>
|
| 27 |
+
</field_item>
|
| 28 |
+
</text>
|
| 29 |
+
<text>
|
| 30 |
+
<field_item>
|
| 31 |
+
<key>
|
| 32 |
+
<content>Date: </content>
|
| 33 |
+
</key>
|
| 34 |
+
<value>02 May, 2021</value>
|
| 35 |
+
</field_item>
|
| 36 |
+
</text>
|
| 37 |
+
</field_region>
|
| 38 |
+
<field_region>
|
| 39 |
+
<field_item>
|
| 40 |
+
<key>
|
| 41 |
+
<location value="5"/>
|
| 42 |
+
<location value="492"/>
|
| 43 |
+
<location value="15"/>
|
| 44 |
+
<location value="502"/>
|
| 45 |
+
Administrator
|
| 46 |
+
</key>
|
| 47 |
+
<value>
|
| 48 |
+
<location value="5"/>
|
| 49 |
+
<location value="492"/>
|
| 50 |
+
<location value="15"/>
|
| 51 |
+
<location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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_name": "DoclingDocument",
|
| 3 |
+
"version": "1.10.0",
|
| 4 |
+
"name": "Document",
|
| 5 |
+
"furniture": {
|
| 6 |
+
"self_ref": "#/furniture",
|
| 7 |
+
"children": [],
|
| 8 |
+
"content_layer": "furniture",
|
| 9 |
+
"name": "_root_",
|
| 10 |
+
"label": "unspecified"
|
| 11 |
+
},
|
| 12 |
+
"body": {
|
| 13 |
+
"self_ref": "#/body",
|
| 14 |
+
"children": [
|
| 15 |
+
{
|
| 16 |
+
"$ref": "#/texts/0"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"$ref": "#/field_regions/0"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"$ref": "#/texts/6"
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"$ref": "#/field_regions/1"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"$ref": "#/texts/11"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"content_layer": "body",
|
| 32 |
+
"name": "_root_",
|
| 33 |
+
"label": "unspecified"
|
| 34 |
+
},
|
| 35 |
+
"groups": [],
|
| 36 |
+
"texts": [
|
| 37 |
+
{
|
| 38 |
+
"self_ref": "#/texts/0",
|
| 39 |
+
"parent": {
|
| 40 |
+
"$ref": "#/body"
|
| 41 |
+
},
|
| 42 |
+
"children": [],
|
| 43 |
+
"content_layer": "body",
|
| 44 |
+
"label": "text",
|
| 45 |
+
"prov": [],
|
| 46 |
+
"orig": "Hello, world!",
|
| 47 |
+
"text": "Hello, world!"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"self_ref": "#/texts/1",
|
| 51 |
+
"parent": {
|
| 52 |
+
"$ref": "#/field_items/0"
|
| 53 |
+
},
|
| 54 |
+
"children": [],
|
| 55 |
+
"content_layer": "body",
|
| 56 |
+
"label": "field_key",
|
| 57 |
+
"prov": [],
|
| 58 |
+
"orig": "Common name",
|
| 59 |
+
"text": "Common name"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"self_ref": "#/texts/2",
|
| 63 |
+
"parent": {
|
| 64 |
+
"$ref": "#/field_items/0"
|
| 65 |
+
},
|
| 66 |
+
"children": [],
|
| 67 |
+
"content_layer": "body",
|
| 68 |
+
"label": "field_value",
|
| 69 |
+
"prov": [],
|
| 70 |
+
"orig": "Duck",
|
| 71 |
+
"text": "Duck",
|
| 72 |
+
"kind": "read_only"
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"self_ref": "#/texts/3",
|
| 76 |
+
"parent": {
|
| 77 |
+
"$ref": "#/field_items/1"
|
| 78 |
+
},
|
| 79 |
+
"children": [],
|
| 80 |
+
"content_layer": "body",
|
| 81 |
+
"label": "field_key",
|
| 82 |
+
"prov": [],
|
| 83 |
+
"orig": "Distribution package",
|
| 84 |
+
"text": "Distribution package"
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"self_ref": "#/texts/4",
|
| 88 |
+
"parent": {
|
| 89 |
+
"$ref": "#/field_items/1"
|
| 90 |
+
},
|
| 91 |
+
"children": [],
|
| 92 |
+
"content_layer": "body",
|
| 93 |
+
"label": "field_value",
|
| 94 |
+
"prov": [],
|
| 95 |
+
"orig": "docling",
|
| 96 |
+
"text": "docling",
|
| 97 |
+
"kind": "read_only"
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"self_ref": "#/texts/5",
|
| 101 |
+
"parent": {
|
| 102 |
+
"$ref": "#/field_items/1"
|
| 103 |
+
},
|
| 104 |
+
"children": [],
|
| 105 |
+
"content_layer": "body",
|
| 106 |
+
"label": "field_value",
|
| 107 |
+
"prov": [
|
| 108 |
+
{
|
| 109 |
+
"page_no": 1,
|
| 110 |
+
"bbox": {
|
| 111 |
+
"l": 5.0,
|
| 112 |
+
"t": 492.0,
|
| 113 |
+
"r": 15.0,
|
| 114 |
+
"b": 502.0,
|
| 115 |
+
"coord_origin": "TOPLEFT"
|
| 116 |
+
},
|
| 117 |
+
"charspan": [
|
| 118 |
+
0,
|
| 119 |
+
12
|
| 120 |
+
]
|
| 121 |
+
}
|
| 122 |
+
],
|
| 123 |
+
"orig": "docling-core",
|
| 124 |
+
"text": "docling-core",
|
| 125 |
+
"kind": "read_only"
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"self_ref": "#/texts/6",
|
| 129 |
+
"parent": {
|
| 130 |
+
"$ref": "#/body"
|
| 131 |
+
},
|
| 132 |
+
"children": [],
|
| 133 |
+
"content_layer": "body",
|
| 134 |
+
"label": "text",
|
| 135 |
+
"prov": [],
|
| 136 |
+
"orig": "Some more text...",
|
| 137 |
+
"text": "Some more text..."
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"self_ref": "#/texts/7",
|
| 141 |
+
"parent": {
|
| 142 |
+
"$ref": "#/field_items/2"
|
| 143 |
+
},
|
| 144 |
+
"children": [],
|
| 145 |
+
"content_layer": "body",
|
| 146 |
+
"label": "field_key",
|
| 147 |
+
"prov": [],
|
| 148 |
+
"orig": "Color",
|
| 149 |
+
"text": "Color"
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"self_ref": "#/texts/8",
|
| 153 |
+
"parent": {
|
| 154 |
+
"$ref": "#/field_items/2"
|
| 155 |
+
},
|
| 156 |
+
"children": [],
|
| 157 |
+
"content_layer": "body",
|
| 158 |
+
"label": "field_value",
|
| 159 |
+
"prov": [],
|
| 160 |
+
"orig": "Orange",
|
| 161 |
+
"text": "Orange",
|
| 162 |
+
"kind": "read_only"
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"self_ref": "#/texts/9",
|
| 166 |
+
"parent": {
|
| 167 |
+
"$ref": "#/field_items/2"
|
| 168 |
+
},
|
| 169 |
+
"children": [],
|
| 170 |
+
"content_layer": "body",
|
| 171 |
+
"label": "field_value",
|
| 172 |
+
"prov": [],
|
| 173 |
+
"orig": "Black",
|
| 174 |
+
"text": "Black",
|
| 175 |
+
"kind": "read_only"
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"self_ref": "#/texts/10",
|
| 179 |
+
"parent": {
|
| 180 |
+
"$ref": "#/field_items/2"
|
| 181 |
+
},
|
| 182 |
+
"children": [],
|
| 183 |
+
"content_layer": "body",
|
| 184 |
+
"label": "field_value",
|
| 185 |
+
"prov": [],
|
| 186 |
+
"orig": "White",
|
| 187 |
+
"text": "White",
|
| 188 |
+
"kind": "read_only"
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"self_ref": "#/texts/11",
|
| 192 |
+
"parent": {
|
| 193 |
+
"$ref": "#/body"
|
| 194 |
+
},
|
| 195 |
+
"children": [],
|
| 196 |
+
"content_layer": "body",
|
| 197 |
+
"label": "text",
|
| 198 |
+
"prov": [],
|
| 199 |
+
"orig": "The end.",
|
| 200 |
+
"text": "The end."
|
| 201 |
+
}
|
| 202 |
+
],
|
| 203 |
+
"pictures": [],
|
| 204 |
+
"tables": [],
|
| 205 |
+
"key_value_items": [],
|
| 206 |
+
"form_items": [],
|
| 207 |
+
"field_regions": [
|
| 208 |
+
{
|
| 209 |
+
"self_ref": "#/field_regions/0",
|
| 210 |
+
"parent": {
|
| 211 |
+
"$ref": "#/body"
|
| 212 |
+
},
|
| 213 |
+
"children": [
|
| 214 |
+
{
|
| 215 |
+
"$ref": "#/field_items/0"
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"$ref": "#/field_items/1"
|
| 219 |
+
}
|
| 220 |
+
],
|
| 221 |
+
"content_layer": "body",
|
| 222 |
+
"label": "field_region",
|
| 223 |
+
"prov": []
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"self_ref": "#/field_regions/1",
|
| 227 |
+
"parent": {
|
| 228 |
+
"$ref": "#/body"
|
| 229 |
+
},
|
| 230 |
+
"children": [
|
| 231 |
+
{
|
| 232 |
+
"$ref": "#/field_items/2"
|
| 233 |
+
}
|
| 234 |
+
],
|
| 235 |
+
"content_layer": "body",
|
| 236 |
+
"label": "field_region",
|
| 237 |
+
"prov": [
|
| 238 |
+
{
|
| 239 |
+
"page_no": 1,
|
| 240 |
+
"bbox": {
|
| 241 |
+
"l": 5.0,
|
| 242 |
+
"t": 492.0,
|
| 243 |
+
"r": 15.0,
|
| 244 |
+
"b": 502.0,
|
| 245 |
+
"coord_origin": "TOPLEFT"
|
| 246 |
+
},
|
| 247 |
+
"charspan": [
|
| 248 |
+
0,
|
| 249 |
+
0
|
| 250 |
+
]
|
| 251 |
+
}
|
| 252 |
+
]
|
| 253 |
+
}
|
| 254 |
+
],
|
| 255 |
+
"field_items": [
|
| 256 |
+
{
|
| 257 |
+
"self_ref": "#/field_items/0",
|
| 258 |
+
"parent": {
|
| 259 |
+
"$ref": "#/field_regions/0"
|
| 260 |
+
},
|
| 261 |
+
"children": [
|
| 262 |
+
{
|
| 263 |
+
"$ref": "#/texts/1"
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"$ref": "#/texts/2"
|
| 267 |
+
}
|
| 268 |
+
],
|
| 269 |
+
"content_layer": "body",
|
| 270 |
+
"label": "field_item",
|
| 271 |
+
"prov": []
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"self_ref": "#/field_items/1",
|
| 275 |
+
"parent": {
|
| 276 |
+
"$ref": "#/field_regions/0"
|
| 277 |
+
},
|
| 278 |
+
"children": [
|
| 279 |
+
{
|
| 280 |
+
"$ref": "#/texts/3"
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"$ref": "#/texts/4"
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"$ref": "#/texts/5"
|
| 287 |
+
}
|
| 288 |
+
],
|
| 289 |
+
"content_layer": "body",
|
| 290 |
+
"label": "field_item",
|
| 291 |
+
"prov": []
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"self_ref": "#/field_items/2",
|
| 295 |
+
"parent": {
|
| 296 |
+
"$ref": "#/field_regions/1"
|
| 297 |
+
},
|
| 298 |
+
"children": [
|
| 299 |
+
{
|
| 300 |
+
"$ref": "#/texts/7"
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"$ref": "#/texts/8"
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"$ref": "#/texts/9"
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"$ref": "#/texts/10"
|
| 310 |
+
}
|
| 311 |
+
],
|
| 312 |
+
"content_layer": "body",
|
| 313 |
+
"label": "field_item",
|
| 314 |
+
"prov": []
|
| 315 |
+
}
|
| 316 |
+
],
|
| 317 |
+
"pages": {
|
| 318 |
+
"1": {
|
| 319 |
+
"size": {
|
| 320 |
+
"width": 512.0,
|
| 321 |
+
"height": 512.0
|
| 322 |
+
},
|
| 323 |
+
"page_no": 1
|
| 324 |
+
}
|
| 325 |
+
}
|
| 326 |
+
}
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv_migration/input.json
ADDED
|
@@ -0,0 +1,326 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_name": "DoclingDocument",
|
| 3 |
+
"version": "1.10.0",
|
| 4 |
+
"name": "",
|
| 5 |
+
"furniture": {
|
| 6 |
+
"self_ref": "#/furniture",
|
| 7 |
+
"children": [],
|
| 8 |
+
"content_layer": "furniture",
|
| 9 |
+
"name": "_root_",
|
| 10 |
+
"label": "unspecified"
|
| 11 |
+
},
|
| 12 |
+
"body": {
|
| 13 |
+
"self_ref": "#/body",
|
| 14 |
+
"children": [
|
| 15 |
+
{
|
| 16 |
+
"$ref": "#/texts/0"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"$ref": "#/field_regions/0"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"$ref": "#/texts/6"
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"$ref": "#/field_regions/1"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"$ref": "#/texts/11"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"content_layer": "body",
|
| 32 |
+
"name": "_root_",
|
| 33 |
+
"label": "unspecified"
|
| 34 |
+
},
|
| 35 |
+
"groups": [],
|
| 36 |
+
"texts": [
|
| 37 |
+
{
|
| 38 |
+
"self_ref": "#/texts/0",
|
| 39 |
+
"parent": {
|
| 40 |
+
"$ref": "#/body"
|
| 41 |
+
},
|
| 42 |
+
"children": [],
|
| 43 |
+
"content_layer": "body",
|
| 44 |
+
"label": "text",
|
| 45 |
+
"prov": [],
|
| 46 |
+
"orig": "Hello, world!",
|
| 47 |
+
"text": "Hello, world!"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"self_ref": "#/texts/1",
|
| 51 |
+
"parent": {
|
| 52 |
+
"$ref": "#/field_items/0"
|
| 53 |
+
},
|
| 54 |
+
"children": [],
|
| 55 |
+
"content_layer": "body",
|
| 56 |
+
"label": "field_key",
|
| 57 |
+
"prov": [],
|
| 58 |
+
"orig": "Common name",
|
| 59 |
+
"text": "Common name"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"self_ref": "#/texts/2",
|
| 63 |
+
"parent": {
|
| 64 |
+
"$ref": "#/field_items/0"
|
| 65 |
+
},
|
| 66 |
+
"children": [],
|
| 67 |
+
"content_layer": "body",
|
| 68 |
+
"label": "field_value",
|
| 69 |
+
"prov": [],
|
| 70 |
+
"orig": "Duck",
|
| 71 |
+
"text": "Duck",
|
| 72 |
+
"kind": "read_only"
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"self_ref": "#/texts/3",
|
| 76 |
+
"parent": {
|
| 77 |
+
"$ref": "#/field_items/1"
|
| 78 |
+
},
|
| 79 |
+
"children": [],
|
| 80 |
+
"content_layer": "body",
|
| 81 |
+
"label": "field_key",
|
| 82 |
+
"prov": [],
|
| 83 |
+
"orig": "Distribution package",
|
| 84 |
+
"text": "Distribution package"
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"self_ref": "#/texts/4",
|
| 88 |
+
"parent": {
|
| 89 |
+
"$ref": "#/field_items/1"
|
| 90 |
+
},
|
| 91 |
+
"children": [],
|
| 92 |
+
"content_layer": "body",
|
| 93 |
+
"label": "field_value",
|
| 94 |
+
"prov": [],
|
| 95 |
+
"orig": "docling",
|
| 96 |
+
"text": "docling",
|
| 97 |
+
"kind": "read_only"
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"self_ref": "#/texts/5",
|
| 101 |
+
"parent": {
|
| 102 |
+
"$ref": "#/field_items/1"
|
| 103 |
+
},
|
| 104 |
+
"children": [],
|
| 105 |
+
"content_layer": "body",
|
| 106 |
+
"label": "field_value",
|
| 107 |
+
"prov": [
|
| 108 |
+
{
|
| 109 |
+
"page_no": 1,
|
| 110 |
+
"bbox": {
|
| 111 |
+
"l": 1.0,
|
| 112 |
+
"t": 4.0,
|
| 113 |
+
"r": 3.0,
|
| 114 |
+
"b": 2.0,
|
| 115 |
+
"coord_origin": "BOTTOMLEFT"
|
| 116 |
+
},
|
| 117 |
+
"charspan": [
|
| 118 |
+
0,
|
| 119 |
+
2
|
| 120 |
+
]
|
| 121 |
+
}
|
| 122 |
+
],
|
| 123 |
+
"orig": "docling-core",
|
| 124 |
+
"text": "docling-core",
|
| 125 |
+
"kind": "read_only"
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"self_ref": "#/texts/6",
|
| 129 |
+
"parent": {
|
| 130 |
+
"$ref": "#/body"
|
| 131 |
+
},
|
| 132 |
+
"children": [],
|
| 133 |
+
"content_layer": "body",
|
| 134 |
+
"label": "text",
|
| 135 |
+
"prov": [],
|
| 136 |
+
"orig": "Some more text...",
|
| 137 |
+
"text": "Some more text..."
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"self_ref": "#/texts/7",
|
| 141 |
+
"parent": {
|
| 142 |
+
"$ref": "#/field_items/2"
|
| 143 |
+
},
|
| 144 |
+
"children": [],
|
| 145 |
+
"content_layer": "body",
|
| 146 |
+
"label": "field_key",
|
| 147 |
+
"prov": [],
|
| 148 |
+
"orig": "Color",
|
| 149 |
+
"text": "Color"
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"self_ref": "#/texts/8",
|
| 153 |
+
"parent": {
|
| 154 |
+
"$ref": "#/field_items/2"
|
| 155 |
+
},
|
| 156 |
+
"children": [],
|
| 157 |
+
"content_layer": "body",
|
| 158 |
+
"label": "field_value",
|
| 159 |
+
"prov": [],
|
| 160 |
+
"orig": "Orange",
|
| 161 |
+
"text": "Orange",
|
| 162 |
+
"kind": "read_only"
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"self_ref": "#/texts/9",
|
| 166 |
+
"parent": {
|
| 167 |
+
"$ref": "#/field_items/2"
|
| 168 |
+
},
|
| 169 |
+
"children": [],
|
| 170 |
+
"content_layer": "body",
|
| 171 |
+
"label": "field_value",
|
| 172 |
+
"prov": [],
|
| 173 |
+
"orig": "Black",
|
| 174 |
+
"text": "Black",
|
| 175 |
+
"kind": "read_only"
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"self_ref": "#/texts/10",
|
| 179 |
+
"parent": {
|
| 180 |
+
"$ref": "#/field_items/2"
|
| 181 |
+
},
|
| 182 |
+
"children": [],
|
| 183 |
+
"content_layer": "body",
|
| 184 |
+
"label": "field_value",
|
| 185 |
+
"prov": [],
|
| 186 |
+
"orig": "White",
|
| 187 |
+
"text": "White",
|
| 188 |
+
"kind": "read_only"
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"self_ref": "#/texts/11",
|
| 192 |
+
"parent": {
|
| 193 |
+
"$ref": "#/body"
|
| 194 |
+
},
|
| 195 |
+
"children": [],
|
| 196 |
+
"content_layer": "body",
|
| 197 |
+
"label": "text",
|
| 198 |
+
"prov": [],
|
| 199 |
+
"orig": "The end.",
|
| 200 |
+
"text": "The end."
|
| 201 |
+
}
|
| 202 |
+
],
|
| 203 |
+
"pictures": [],
|
| 204 |
+
"tables": [],
|
| 205 |
+
"key_value_items": [],
|
| 206 |
+
"form_items": [],
|
| 207 |
+
"field_regions": [
|
| 208 |
+
{
|
| 209 |
+
"self_ref": "#/field_regions/0",
|
| 210 |
+
"parent": {
|
| 211 |
+
"$ref": "#/body"
|
| 212 |
+
},
|
| 213 |
+
"children": [
|
| 214 |
+
{
|
| 215 |
+
"$ref": "#/field_items/0"
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"$ref": "#/field_items/1"
|
| 219 |
+
}
|
| 220 |
+
],
|
| 221 |
+
"content_layer": "body",
|
| 222 |
+
"label": "field_region",
|
| 223 |
+
"prov": []
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"self_ref": "#/field_regions/1",
|
| 227 |
+
"parent": {
|
| 228 |
+
"$ref": "#/body"
|
| 229 |
+
},
|
| 230 |
+
"children": [
|
| 231 |
+
{
|
| 232 |
+
"$ref": "#/field_items/2"
|
| 233 |
+
}
|
| 234 |
+
],
|
| 235 |
+
"content_layer": "body",
|
| 236 |
+
"label": "field_region",
|
| 237 |
+
"prov": [
|
| 238 |
+
{
|
| 239 |
+
"page_no": 1,
|
| 240 |
+
"bbox": {
|
| 241 |
+
"l": 1.0,
|
| 242 |
+
"t": 4.0,
|
| 243 |
+
"r": 3.0,
|
| 244 |
+
"b": 2.0,
|
| 245 |
+
"coord_origin": "BOTTOMLEFT"
|
| 246 |
+
},
|
| 247 |
+
"charspan": [
|
| 248 |
+
0,
|
| 249 |
+
2
|
| 250 |
+
]
|
| 251 |
+
}
|
| 252 |
+
]
|
| 253 |
+
}
|
| 254 |
+
],
|
| 255 |
+
"field_items": [
|
| 256 |
+
{
|
| 257 |
+
"self_ref": "#/field_items/0",
|
| 258 |
+
"parent": {
|
| 259 |
+
"$ref": "#/field_regions/0"
|
| 260 |
+
},
|
| 261 |
+
"children": [
|
| 262 |
+
{
|
| 263 |
+
"$ref": "#/texts/1"
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"$ref": "#/texts/2"
|
| 267 |
+
}
|
| 268 |
+
],
|
| 269 |
+
"content_layer": "body",
|
| 270 |
+
"label": "field_item",
|
| 271 |
+
"prov": []
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"self_ref": "#/field_items/1",
|
| 275 |
+
"parent": {
|
| 276 |
+
"$ref": "#/field_regions/0"
|
| 277 |
+
},
|
| 278 |
+
"children": [
|
| 279 |
+
{
|
| 280 |
+
"$ref": "#/texts/3"
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"$ref": "#/texts/4"
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"$ref": "#/texts/5"
|
| 287 |
+
}
|
| 288 |
+
],
|
| 289 |
+
"content_layer": "body",
|
| 290 |
+
"label": "field_item",
|
| 291 |
+
"prov": []
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"self_ref": "#/field_items/2",
|
| 295 |
+
"parent": {
|
| 296 |
+
"$ref": "#/field_regions/1"
|
| 297 |
+
},
|
| 298 |
+
"children": [
|
| 299 |
+
{
|
| 300 |
+
"$ref": "#/texts/7"
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"$ref": "#/texts/8"
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"$ref": "#/texts/9"
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"$ref": "#/texts/10"
|
| 310 |
+
}
|
| 311 |
+
],
|
| 312 |
+
"content_layer": "body",
|
| 313 |
+
"label": "field_item",
|
| 314 |
+
"prov": []
|
| 315 |
+
}
|
| 316 |
+
],
|
| 317 |
+
"pages": {
|
| 318 |
+
"1": {
|
| 319 |
+
"size": {
|
| 320 |
+
"width": 100.0,
|
| 321 |
+
"height": 100.0
|
| 322 |
+
},
|
| 323 |
+
"page_no": 1
|
| 324 |
+
}
|
| 325 |
+
}
|
| 326 |
+
}
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv_migration/reserialized.dclg.xml
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<doclang>
|
| 2 |
+
<text>Hello, world!</text>
|
| 3 |
+
<field_region>
|
| 4 |
+
<field_item>
|
| 5 |
+
<key>Common name</key>
|
| 6 |
+
<value>Duck</value>
|
| 7 |
+
</field_item>
|
| 8 |
+
<field_item>
|
| 9 |
+
<key>Distribution package</key>
|
| 10 |
+
<value>docling</value>
|
| 11 |
+
<value>
|
| 12 |
+
<location value="5"/>
|
| 13 |
+
<location value="492"/>
|
| 14 |
+
<location value="15"/>
|
| 15 |
+
<location value="502"/>
|
| 16 |
+
docling-core
|
| 17 |
+
</value>
|
| 18 |
+
</field_item>
|
| 19 |
+
</field_region>
|
| 20 |
+
<text>Some more text...</text>
|
| 21 |
+
<field_region>
|
| 22 |
+
<location value="5"/>
|
| 23 |
+
<location value="492"/>
|
| 24 |
+
<location value="15"/>
|
| 25 |
+
<location value="502"/>
|
| 26 |
+
<field_item>
|
| 27 |
+
<key>Color</key>
|
| 28 |
+
<value>Orange</value>
|
| 29 |
+
<value>Black</value>
|
| 30 |
+
<value>White</value>
|
| 31 |
+
</field_item>
|
| 32 |
+
</field_region>
|
| 33 |
+
<text>The end.</text>
|
| 34 |
+
</doclang>
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_kv_migration/serialized.dclg.xml
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<doclang>
|
| 2 |
+
<text>Hello, world!</text>
|
| 3 |
+
<field_region>
|
| 4 |
+
<field_item>
|
| 5 |
+
<key>Common name</key>
|
| 6 |
+
<value>Duck</value>
|
| 7 |
+
</field_item>
|
| 8 |
+
<field_item>
|
| 9 |
+
<key>Distribution package</key>
|
| 10 |
+
<value>docling</value>
|
| 11 |
+
<value>
|
| 12 |
+
<location value="5"/>
|
| 13 |
+
<location value="492"/>
|
| 14 |
+
<location value="15"/>
|
| 15 |
+
<location value="502"/>
|
| 16 |
+
docling-core
|
| 17 |
+
</value>
|
| 18 |
+
</field_item>
|
| 19 |
+
</field_region>
|
| 20 |
+
<text>Some more text...</text>
|
| 21 |
+
<field_region>
|
| 22 |
+
<location value="5"/>
|
| 23 |
+
<location value="492"/>
|
| 24 |
+
<location value="15"/>
|
| 25 |
+
<location value="502"/>
|
| 26 |
+
<field_item>
|
| 27 |
+
<key>Color</key>
|
| 28 |
+
<value>Orange</value>
|
| 29 |
+
<value>Black</value>
|
| 30 |
+
<value>White</value>
|
| 31 |
+
</field_item>
|
| 32 |
+
</field_region>
|
| 33 |
+
<text>The end.</text>
|
| 34 |
+
</doclang>
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/field_region_value_only.gt.dclg.xml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<doclang>
|
| 2 |
+
<field_region>
|
| 3 |
+
<field_item>
|
| 4 |
+
<value>42</value>
|
| 5 |
+
</field_item>
|
| 6 |
+
</field_region>
|
| 7 |
+
</doclang>
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/flattened.dclg.xml
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<doclang>
|
| 2 |
+
<heading>Title</heading>
|
| 3 |
+
<text>Some intro</text>
|
| 4 |
+
<heading level="2">Foo</heading>
|
| 5 |
+
<text>Foo stuff</text>
|
| 6 |
+
<heading level="3">Bar</heading>
|
| 7 |
+
<text>Bar stuff</text>
|
| 8 |
+
<text>More stuff</text>
|
| 9 |
+
<heading level="2">
|
| 10 |
+
Rich heading
|
| 11 |
+
<italic>without</italic>
|
| 12 |
+
other children besides the inline
|
| 13 |
+
</heading>
|
| 14 |
+
<text>Section content as sibling of the heading.</text>
|
| 15 |
+
<heading level="3">Subheading</heading>
|
| 16 |
+
<text>Subsection content.</text>
|
| 17 |
+
<heading level="2">
|
| 18 |
+
Rich heading
|
| 19 |
+
<italic>with</italic>
|
| 20 |
+
other children besides the inline
|
| 21 |
+
</heading>
|
| 22 |
+
<text>Section content as child of the heading.</text>
|
| 23 |
+
<text>Section content as sibling of the heading.</text>
|
| 24 |
+
<heading level="2">Heading</heading>
|
| 25 |
+
<text>Bar</text>
|
| 26 |
+
<list>
|
| 27 |
+
<ldiv/>
|
| 28 |
+
List item
|
| 29 |
+
<ldiv/>
|
| 30 |
+
<text>List item</text>
|
| 31 |
+
<list>
|
| 32 |
+
<ldiv/>
|
| 33 |
+
List item
|
| 34 |
+
<ldiv/>
|
| 35 |
+
List item
|
| 36 |
+
</list>
|
| 37 |
+
</list>
|
| 38 |
+
<heading level="3">Heading</heading>
|
| 39 |
+
<table>
|
| 40 |
+
<fcel/>
|
| 41 |
+
cell 0,0
|
| 42 |
+
<fcel/>
|
| 43 |
+
cell 0,1
|
| 44 |
+
<nl/>
|
| 45 |
+
<fcel/>
|
| 46 |
+
cell 1,0
|
| 47 |
+
<fcel/>
|
| 48 |
+
<text>
|
| 49 |
+
<italic>
|
| 50 |
+
<content>text in italic </content>
|
| 51 |
+
</italic>
|
| 52 |
+
<bold>text in bold</bold>
|
| 53 |
+
</text>
|
| 54 |
+
<nl/>
|
| 55 |
+
<fcel/>
|
| 56 |
+
cell 2,0
|
| 57 |
+
<fcel/>
|
| 58 |
+
cell 2,1
|
| 59 |
+
<nl/>
|
| 60 |
+
<fcel/>
|
| 61 |
+
cell 3,0
|
| 62 |
+
<fcel/>
|
| 63 |
+
cell 3,1
|
| 64 |
+
<nl/>
|
| 65 |
+
</table>
|
| 66 |
+
<heading level="2">Heading</heading>
|
| 67 |
+
<field_region>
|
| 68 |
+
<text>Some text</text>
|
| 69 |
+
<field_item>
|
| 70 |
+
<text>Some text</text>
|
| 71 |
+
<key>Key</key>
|
| 72 |
+
<value>Value</value>
|
| 73 |
+
</field_item>
|
| 74 |
+
</field_region>
|
| 75 |
+
</doclang>
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/flattened.json
ADDED
|
@@ -0,0 +1,936 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_name": "DoclingDocument",
|
| 3 |
+
"version": "1.10.0",
|
| 4 |
+
"name": "",
|
| 5 |
+
"furniture": {
|
| 6 |
+
"self_ref": "#/furniture",
|
| 7 |
+
"children": [],
|
| 8 |
+
"content_layer": "furniture",
|
| 9 |
+
"name": "_root_",
|
| 10 |
+
"label": "unspecified"
|
| 11 |
+
},
|
| 12 |
+
"body": {
|
| 13 |
+
"self_ref": "#/body",
|
| 14 |
+
"children": [
|
| 15 |
+
{
|
| 16 |
+
"$ref": "#/texts/0"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"$ref": "#/texts/1"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"$ref": "#/texts/2"
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"$ref": "#/texts/3"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"$ref": "#/texts/4"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"$ref": "#/texts/5"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"$ref": "#/texts/6"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"$ref": "#/texts/7"
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"$ref": "#/texts/11"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"$ref": "#/texts/12"
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"$ref": "#/texts/13"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"$ref": "#/texts/14"
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"$ref": "#/texts/18"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"$ref": "#/texts/19"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"$ref": "#/texts/20"
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"$ref": "#/texts/21"
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"$ref": "#/groups/2"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"$ref": "#/texts/26"
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"$ref": "#/tables/0"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"$ref": "#/texts/29"
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"$ref": "#/field_regions/0"
|
| 77 |
+
}
|
| 78 |
+
],
|
| 79 |
+
"content_layer": "body",
|
| 80 |
+
"name": "_root_",
|
| 81 |
+
"label": "unspecified"
|
| 82 |
+
},
|
| 83 |
+
"groups": [
|
| 84 |
+
{
|
| 85 |
+
"self_ref": "#/groups/0",
|
| 86 |
+
"parent": {
|
| 87 |
+
"$ref": "#/texts/7"
|
| 88 |
+
},
|
| 89 |
+
"children": [
|
| 90 |
+
{
|
| 91 |
+
"$ref": "#/texts/8"
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"$ref": "#/texts/9"
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"$ref": "#/texts/10"
|
| 98 |
+
}
|
| 99 |
+
],
|
| 100 |
+
"content_layer": "body",
|
| 101 |
+
"name": "group",
|
| 102 |
+
"label": "inline"
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"self_ref": "#/groups/1",
|
| 106 |
+
"parent": {
|
| 107 |
+
"$ref": "#/texts/14"
|
| 108 |
+
},
|
| 109 |
+
"children": [
|
| 110 |
+
{
|
| 111 |
+
"$ref": "#/texts/15"
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"$ref": "#/texts/16"
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"$ref": "#/texts/17"
|
| 118 |
+
}
|
| 119 |
+
],
|
| 120 |
+
"content_layer": "body",
|
| 121 |
+
"name": "group",
|
| 122 |
+
"label": "inline"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"self_ref": "#/groups/2",
|
| 126 |
+
"parent": {
|
| 127 |
+
"$ref": "#/body"
|
| 128 |
+
},
|
| 129 |
+
"children": [
|
| 130 |
+
{
|
| 131 |
+
"$ref": "#/texts/22"
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"$ref": "#/texts/23"
|
| 135 |
+
}
|
| 136 |
+
],
|
| 137 |
+
"content_layer": "body",
|
| 138 |
+
"name": "group",
|
| 139 |
+
"label": "list"
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"self_ref": "#/groups/3",
|
| 143 |
+
"parent": {
|
| 144 |
+
"$ref": "#/texts/23"
|
| 145 |
+
},
|
| 146 |
+
"children": [
|
| 147 |
+
{
|
| 148 |
+
"$ref": "#/texts/24"
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"$ref": "#/texts/25"
|
| 152 |
+
}
|
| 153 |
+
],
|
| 154 |
+
"content_layer": "body",
|
| 155 |
+
"name": "group",
|
| 156 |
+
"label": "list"
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"self_ref": "#/groups/4",
|
| 160 |
+
"parent": {
|
| 161 |
+
"$ref": "#/tables/0"
|
| 162 |
+
},
|
| 163 |
+
"children": [
|
| 164 |
+
{
|
| 165 |
+
"$ref": "#/texts/27"
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"$ref": "#/texts/28"
|
| 169 |
+
}
|
| 170 |
+
],
|
| 171 |
+
"content_layer": "body",
|
| 172 |
+
"name": "group",
|
| 173 |
+
"label": "inline"
|
| 174 |
+
}
|
| 175 |
+
],
|
| 176 |
+
"texts": [
|
| 177 |
+
{
|
| 178 |
+
"self_ref": "#/texts/0",
|
| 179 |
+
"parent": {
|
| 180 |
+
"$ref": "#/body"
|
| 181 |
+
},
|
| 182 |
+
"children": [],
|
| 183 |
+
"content_layer": "body",
|
| 184 |
+
"label": "title",
|
| 185 |
+
"prov": [],
|
| 186 |
+
"orig": "Title",
|
| 187 |
+
"text": "Title"
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"self_ref": "#/texts/1",
|
| 191 |
+
"parent": {
|
| 192 |
+
"$ref": "#/body"
|
| 193 |
+
},
|
| 194 |
+
"children": [],
|
| 195 |
+
"content_layer": "body",
|
| 196 |
+
"label": "text",
|
| 197 |
+
"prov": [],
|
| 198 |
+
"orig": "Some intro",
|
| 199 |
+
"text": "Some intro"
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"self_ref": "#/texts/2",
|
| 203 |
+
"parent": {
|
| 204 |
+
"$ref": "#/body"
|
| 205 |
+
},
|
| 206 |
+
"children": [],
|
| 207 |
+
"content_layer": "body",
|
| 208 |
+
"label": "section_header",
|
| 209 |
+
"prov": [],
|
| 210 |
+
"orig": "Foo",
|
| 211 |
+
"text": "Foo",
|
| 212 |
+
"level": 1
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"self_ref": "#/texts/3",
|
| 216 |
+
"parent": {
|
| 217 |
+
"$ref": "#/body"
|
| 218 |
+
},
|
| 219 |
+
"children": [],
|
| 220 |
+
"content_layer": "body",
|
| 221 |
+
"label": "text",
|
| 222 |
+
"prov": [],
|
| 223 |
+
"orig": "Foo stuff",
|
| 224 |
+
"text": "Foo stuff"
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"self_ref": "#/texts/4",
|
| 228 |
+
"parent": {
|
| 229 |
+
"$ref": "#/body"
|
| 230 |
+
},
|
| 231 |
+
"children": [],
|
| 232 |
+
"content_layer": "body",
|
| 233 |
+
"label": "section_header",
|
| 234 |
+
"prov": [],
|
| 235 |
+
"orig": "Bar",
|
| 236 |
+
"text": "Bar",
|
| 237 |
+
"level": 2
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"self_ref": "#/texts/5",
|
| 241 |
+
"parent": {
|
| 242 |
+
"$ref": "#/body"
|
| 243 |
+
},
|
| 244 |
+
"children": [],
|
| 245 |
+
"content_layer": "body",
|
| 246 |
+
"label": "text",
|
| 247 |
+
"prov": [],
|
| 248 |
+
"orig": "Bar stuff",
|
| 249 |
+
"text": "Bar stuff"
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"self_ref": "#/texts/6",
|
| 253 |
+
"parent": {
|
| 254 |
+
"$ref": "#/body"
|
| 255 |
+
},
|
| 256 |
+
"children": [],
|
| 257 |
+
"content_layer": "body",
|
| 258 |
+
"label": "text",
|
| 259 |
+
"prov": [],
|
| 260 |
+
"orig": "More stuff",
|
| 261 |
+
"text": "More stuff"
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"self_ref": "#/texts/7",
|
| 265 |
+
"parent": {
|
| 266 |
+
"$ref": "#/body"
|
| 267 |
+
},
|
| 268 |
+
"children": [
|
| 269 |
+
{
|
| 270 |
+
"$ref": "#/groups/0"
|
| 271 |
+
}
|
| 272 |
+
],
|
| 273 |
+
"content_layer": "body",
|
| 274 |
+
"label": "section_header",
|
| 275 |
+
"prov": [],
|
| 276 |
+
"orig": "",
|
| 277 |
+
"text": "",
|
| 278 |
+
"level": 1
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"self_ref": "#/texts/8",
|
| 282 |
+
"parent": {
|
| 283 |
+
"$ref": "#/groups/0"
|
| 284 |
+
},
|
| 285 |
+
"children": [],
|
| 286 |
+
"content_layer": "body",
|
| 287 |
+
"label": "text",
|
| 288 |
+
"prov": [],
|
| 289 |
+
"orig": "Rich heading",
|
| 290 |
+
"text": "Rich heading"
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"self_ref": "#/texts/9",
|
| 294 |
+
"parent": {
|
| 295 |
+
"$ref": "#/groups/0"
|
| 296 |
+
},
|
| 297 |
+
"children": [],
|
| 298 |
+
"content_layer": "body",
|
| 299 |
+
"label": "text",
|
| 300 |
+
"prov": [],
|
| 301 |
+
"orig": "without",
|
| 302 |
+
"text": "without",
|
| 303 |
+
"formatting": {
|
| 304 |
+
"bold": false,
|
| 305 |
+
"italic": true,
|
| 306 |
+
"underline": false,
|
| 307 |
+
"strikethrough": false,
|
| 308 |
+
"script": "baseline"
|
| 309 |
+
}
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"self_ref": "#/texts/10",
|
| 313 |
+
"parent": {
|
| 314 |
+
"$ref": "#/groups/0"
|
| 315 |
+
},
|
| 316 |
+
"children": [],
|
| 317 |
+
"content_layer": "body",
|
| 318 |
+
"label": "text",
|
| 319 |
+
"prov": [],
|
| 320 |
+
"orig": "other children besides the inline",
|
| 321 |
+
"text": "other children besides the inline"
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"self_ref": "#/texts/11",
|
| 325 |
+
"parent": {
|
| 326 |
+
"$ref": "#/body"
|
| 327 |
+
},
|
| 328 |
+
"children": [],
|
| 329 |
+
"content_layer": "body",
|
| 330 |
+
"label": "text",
|
| 331 |
+
"prov": [],
|
| 332 |
+
"orig": "Section content as sibling of the heading.",
|
| 333 |
+
"text": "Section content as sibling of the heading."
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"self_ref": "#/texts/12",
|
| 337 |
+
"parent": {
|
| 338 |
+
"$ref": "#/body"
|
| 339 |
+
},
|
| 340 |
+
"children": [],
|
| 341 |
+
"content_layer": "body",
|
| 342 |
+
"label": "section_header",
|
| 343 |
+
"prov": [],
|
| 344 |
+
"orig": "Subheading",
|
| 345 |
+
"text": "Subheading",
|
| 346 |
+
"level": 2
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"self_ref": "#/texts/13",
|
| 350 |
+
"parent": {
|
| 351 |
+
"$ref": "#/body"
|
| 352 |
+
},
|
| 353 |
+
"children": [],
|
| 354 |
+
"content_layer": "body",
|
| 355 |
+
"label": "text",
|
| 356 |
+
"prov": [],
|
| 357 |
+
"orig": "Subsection content.",
|
| 358 |
+
"text": "Subsection content."
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"self_ref": "#/texts/14",
|
| 362 |
+
"parent": {
|
| 363 |
+
"$ref": "#/body"
|
| 364 |
+
},
|
| 365 |
+
"children": [
|
| 366 |
+
{
|
| 367 |
+
"$ref": "#/groups/1"
|
| 368 |
+
}
|
| 369 |
+
],
|
| 370 |
+
"content_layer": "body",
|
| 371 |
+
"label": "section_header",
|
| 372 |
+
"prov": [],
|
| 373 |
+
"orig": "",
|
| 374 |
+
"text": "",
|
| 375 |
+
"level": 1
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"self_ref": "#/texts/15",
|
| 379 |
+
"parent": {
|
| 380 |
+
"$ref": "#/groups/1"
|
| 381 |
+
},
|
| 382 |
+
"children": [],
|
| 383 |
+
"content_layer": "body",
|
| 384 |
+
"label": "text",
|
| 385 |
+
"prov": [],
|
| 386 |
+
"orig": "Rich heading",
|
| 387 |
+
"text": "Rich heading"
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"self_ref": "#/texts/16",
|
| 391 |
+
"parent": {
|
| 392 |
+
"$ref": "#/groups/1"
|
| 393 |
+
},
|
| 394 |
+
"children": [],
|
| 395 |
+
"content_layer": "body",
|
| 396 |
+
"label": "text",
|
| 397 |
+
"prov": [],
|
| 398 |
+
"orig": "with",
|
| 399 |
+
"text": "with",
|
| 400 |
+
"formatting": {
|
| 401 |
+
"bold": false,
|
| 402 |
+
"italic": true,
|
| 403 |
+
"underline": false,
|
| 404 |
+
"strikethrough": false,
|
| 405 |
+
"script": "baseline"
|
| 406 |
+
}
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"self_ref": "#/texts/17",
|
| 410 |
+
"parent": {
|
| 411 |
+
"$ref": "#/groups/1"
|
| 412 |
+
},
|
| 413 |
+
"children": [],
|
| 414 |
+
"content_layer": "body",
|
| 415 |
+
"label": "text",
|
| 416 |
+
"prov": [],
|
| 417 |
+
"orig": "other children besides the inline",
|
| 418 |
+
"text": "other children besides the inline"
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"self_ref": "#/texts/18",
|
| 422 |
+
"parent": {
|
| 423 |
+
"$ref": "#/body"
|
| 424 |
+
},
|
| 425 |
+
"children": [],
|
| 426 |
+
"content_layer": "body",
|
| 427 |
+
"label": "text",
|
| 428 |
+
"prov": [],
|
| 429 |
+
"orig": "Section content as child of the heading.",
|
| 430 |
+
"text": "Section content as child of the heading."
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"self_ref": "#/texts/19",
|
| 434 |
+
"parent": {
|
| 435 |
+
"$ref": "#/body"
|
| 436 |
+
},
|
| 437 |
+
"children": [],
|
| 438 |
+
"content_layer": "body",
|
| 439 |
+
"label": "text",
|
| 440 |
+
"prov": [],
|
| 441 |
+
"orig": "Section content as sibling of the heading.",
|
| 442 |
+
"text": "Section content as sibling of the heading."
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"self_ref": "#/texts/20",
|
| 446 |
+
"parent": {
|
| 447 |
+
"$ref": "#/body"
|
| 448 |
+
},
|
| 449 |
+
"children": [],
|
| 450 |
+
"content_layer": "body",
|
| 451 |
+
"label": "section_header",
|
| 452 |
+
"prov": [],
|
| 453 |
+
"orig": "Heading",
|
| 454 |
+
"text": "Heading",
|
| 455 |
+
"level": 1
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"self_ref": "#/texts/21",
|
| 459 |
+
"parent": {
|
| 460 |
+
"$ref": "#/body"
|
| 461 |
+
},
|
| 462 |
+
"children": [],
|
| 463 |
+
"content_layer": "body",
|
| 464 |
+
"label": "text",
|
| 465 |
+
"prov": [],
|
| 466 |
+
"orig": "Bar",
|
| 467 |
+
"text": "Bar"
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"self_ref": "#/texts/22",
|
| 471 |
+
"parent": {
|
| 472 |
+
"$ref": "#/groups/2"
|
| 473 |
+
},
|
| 474 |
+
"children": [],
|
| 475 |
+
"content_layer": "body",
|
| 476 |
+
"label": "list_item",
|
| 477 |
+
"prov": [],
|
| 478 |
+
"orig": "List item",
|
| 479 |
+
"text": "List item",
|
| 480 |
+
"enumerated": false,
|
| 481 |
+
"marker": ""
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"self_ref": "#/texts/23",
|
| 485 |
+
"parent": {
|
| 486 |
+
"$ref": "#/groups/2"
|
| 487 |
+
},
|
| 488 |
+
"children": [
|
| 489 |
+
{
|
| 490 |
+
"$ref": "#/groups/3"
|
| 491 |
+
}
|
| 492 |
+
],
|
| 493 |
+
"content_layer": "body",
|
| 494 |
+
"label": "list_item",
|
| 495 |
+
"prov": [],
|
| 496 |
+
"orig": "List item",
|
| 497 |
+
"text": "List item",
|
| 498 |
+
"enumerated": false,
|
| 499 |
+
"marker": ""
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"self_ref": "#/texts/24",
|
| 503 |
+
"parent": {
|
| 504 |
+
"$ref": "#/groups/3"
|
| 505 |
+
},
|
| 506 |
+
"children": [],
|
| 507 |
+
"content_layer": "body",
|
| 508 |
+
"label": "list_item",
|
| 509 |
+
"prov": [],
|
| 510 |
+
"orig": "List item",
|
| 511 |
+
"text": "List item",
|
| 512 |
+
"enumerated": false,
|
| 513 |
+
"marker": ""
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"self_ref": "#/texts/25",
|
| 517 |
+
"parent": {
|
| 518 |
+
"$ref": "#/groups/3"
|
| 519 |
+
},
|
| 520 |
+
"children": [],
|
| 521 |
+
"content_layer": "body",
|
| 522 |
+
"label": "list_item",
|
| 523 |
+
"prov": [],
|
| 524 |
+
"orig": "List item",
|
| 525 |
+
"text": "List item",
|
| 526 |
+
"enumerated": false,
|
| 527 |
+
"marker": ""
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"self_ref": "#/texts/26",
|
| 531 |
+
"parent": {
|
| 532 |
+
"$ref": "#/body"
|
| 533 |
+
},
|
| 534 |
+
"children": [],
|
| 535 |
+
"content_layer": "body",
|
| 536 |
+
"label": "section_header",
|
| 537 |
+
"prov": [],
|
| 538 |
+
"orig": "Heading",
|
| 539 |
+
"text": "Heading",
|
| 540 |
+
"level": 2
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"self_ref": "#/texts/27",
|
| 544 |
+
"parent": {
|
| 545 |
+
"$ref": "#/groups/4"
|
| 546 |
+
},
|
| 547 |
+
"children": [],
|
| 548 |
+
"content_layer": "body",
|
| 549 |
+
"label": "text",
|
| 550 |
+
"prov": [],
|
| 551 |
+
"orig": "text in italic ",
|
| 552 |
+
"text": "text in italic ",
|
| 553 |
+
"formatting": {
|
| 554 |
+
"bold": false,
|
| 555 |
+
"italic": true,
|
| 556 |
+
"underline": false,
|
| 557 |
+
"strikethrough": false,
|
| 558 |
+
"script": "baseline"
|
| 559 |
+
}
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"self_ref": "#/texts/28",
|
| 563 |
+
"parent": {
|
| 564 |
+
"$ref": "#/groups/4"
|
| 565 |
+
},
|
| 566 |
+
"children": [],
|
| 567 |
+
"content_layer": "body",
|
| 568 |
+
"label": "text",
|
| 569 |
+
"prov": [],
|
| 570 |
+
"orig": "text in bold",
|
| 571 |
+
"text": "text in bold",
|
| 572 |
+
"formatting": {
|
| 573 |
+
"bold": true,
|
| 574 |
+
"italic": false,
|
| 575 |
+
"underline": false,
|
| 576 |
+
"strikethrough": false,
|
| 577 |
+
"script": "baseline"
|
| 578 |
+
}
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"self_ref": "#/texts/29",
|
| 582 |
+
"parent": {
|
| 583 |
+
"$ref": "#/body"
|
| 584 |
+
},
|
| 585 |
+
"children": [],
|
| 586 |
+
"content_layer": "body",
|
| 587 |
+
"label": "section_header",
|
| 588 |
+
"prov": [],
|
| 589 |
+
"orig": "Heading",
|
| 590 |
+
"text": "Heading",
|
| 591 |
+
"level": 1
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"self_ref": "#/texts/30",
|
| 595 |
+
"parent": {
|
| 596 |
+
"$ref": "#/field_regions/0"
|
| 597 |
+
},
|
| 598 |
+
"children": [],
|
| 599 |
+
"content_layer": "body",
|
| 600 |
+
"label": "text",
|
| 601 |
+
"prov": [],
|
| 602 |
+
"orig": "Some text",
|
| 603 |
+
"text": "Some text"
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"self_ref": "#/texts/31",
|
| 607 |
+
"parent": {
|
| 608 |
+
"$ref": "#/field_items/0"
|
| 609 |
+
},
|
| 610 |
+
"children": [],
|
| 611 |
+
"content_layer": "body",
|
| 612 |
+
"label": "text",
|
| 613 |
+
"prov": [],
|
| 614 |
+
"orig": "Some text",
|
| 615 |
+
"text": "Some text"
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"self_ref": "#/texts/32",
|
| 619 |
+
"parent": {
|
| 620 |
+
"$ref": "#/field_items/0"
|
| 621 |
+
},
|
| 622 |
+
"children": [],
|
| 623 |
+
"content_layer": "body",
|
| 624 |
+
"label": "field_key",
|
| 625 |
+
"prov": [],
|
| 626 |
+
"orig": "Key",
|
| 627 |
+
"text": "Key"
|
| 628 |
+
},
|
| 629 |
+
{
|
| 630 |
+
"self_ref": "#/texts/33",
|
| 631 |
+
"parent": {
|
| 632 |
+
"$ref": "#/field_items/0"
|
| 633 |
+
},
|
| 634 |
+
"children": [],
|
| 635 |
+
"content_layer": "body",
|
| 636 |
+
"label": "field_value",
|
| 637 |
+
"prov": [],
|
| 638 |
+
"orig": "Value",
|
| 639 |
+
"text": "Value",
|
| 640 |
+
"kind": "read_only"
|
| 641 |
+
}
|
| 642 |
+
],
|
| 643 |
+
"pictures": [],
|
| 644 |
+
"tables": [
|
| 645 |
+
{
|
| 646 |
+
"self_ref": "#/tables/0",
|
| 647 |
+
"parent": {
|
| 648 |
+
"$ref": "#/body"
|
| 649 |
+
},
|
| 650 |
+
"children": [
|
| 651 |
+
{
|
| 652 |
+
"$ref": "#/groups/4"
|
| 653 |
+
}
|
| 654 |
+
],
|
| 655 |
+
"content_layer": "body",
|
| 656 |
+
"label": "table",
|
| 657 |
+
"prov": [],
|
| 658 |
+
"captions": [],
|
| 659 |
+
"references": [],
|
| 660 |
+
"footnotes": [],
|
| 661 |
+
"data": {
|
| 662 |
+
"table_cells": [
|
| 663 |
+
{
|
| 664 |
+
"row_span": 1,
|
| 665 |
+
"col_span": 1,
|
| 666 |
+
"start_row_offset_idx": 0,
|
| 667 |
+
"end_row_offset_idx": 1,
|
| 668 |
+
"start_col_offset_idx": 0,
|
| 669 |
+
"end_col_offset_idx": 1,
|
| 670 |
+
"text": "cell 0,0",
|
| 671 |
+
"column_header": false,
|
| 672 |
+
"row_header": false,
|
| 673 |
+
"row_section": false,
|
| 674 |
+
"fillable": false
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"row_span": 1,
|
| 678 |
+
"col_span": 1,
|
| 679 |
+
"start_row_offset_idx": 0,
|
| 680 |
+
"end_row_offset_idx": 1,
|
| 681 |
+
"start_col_offset_idx": 1,
|
| 682 |
+
"end_col_offset_idx": 2,
|
| 683 |
+
"text": "cell 0,1",
|
| 684 |
+
"column_header": false,
|
| 685 |
+
"row_header": false,
|
| 686 |
+
"row_section": false,
|
| 687 |
+
"fillable": false
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"row_span": 1,
|
| 691 |
+
"col_span": 1,
|
| 692 |
+
"start_row_offset_idx": 1,
|
| 693 |
+
"end_row_offset_idx": 2,
|
| 694 |
+
"start_col_offset_idx": 0,
|
| 695 |
+
"end_col_offset_idx": 1,
|
| 696 |
+
"text": "cell 1,0",
|
| 697 |
+
"column_header": false,
|
| 698 |
+
"row_header": false,
|
| 699 |
+
"row_section": false,
|
| 700 |
+
"fillable": false
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"row_span": 1,
|
| 704 |
+
"col_span": 1,
|
| 705 |
+
"start_row_offset_idx": 1,
|
| 706 |
+
"end_row_offset_idx": 2,
|
| 707 |
+
"start_col_offset_idx": 1,
|
| 708 |
+
"end_col_offset_idx": 2,
|
| 709 |
+
"text": "",
|
| 710 |
+
"column_header": false,
|
| 711 |
+
"row_header": false,
|
| 712 |
+
"row_section": false,
|
| 713 |
+
"fillable": false,
|
| 714 |
+
"ref": {
|
| 715 |
+
"$ref": "#/groups/4"
|
| 716 |
+
}
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"row_span": 1,
|
| 720 |
+
"col_span": 1,
|
| 721 |
+
"start_row_offset_idx": 2,
|
| 722 |
+
"end_row_offset_idx": 3,
|
| 723 |
+
"start_col_offset_idx": 0,
|
| 724 |
+
"end_col_offset_idx": 1,
|
| 725 |
+
"text": "cell 2,0",
|
| 726 |
+
"column_header": false,
|
| 727 |
+
"row_header": false,
|
| 728 |
+
"row_section": false,
|
| 729 |
+
"fillable": false
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"row_span": 1,
|
| 733 |
+
"col_span": 1,
|
| 734 |
+
"start_row_offset_idx": 2,
|
| 735 |
+
"end_row_offset_idx": 3,
|
| 736 |
+
"start_col_offset_idx": 1,
|
| 737 |
+
"end_col_offset_idx": 2,
|
| 738 |
+
"text": "cell 2,1",
|
| 739 |
+
"column_header": false,
|
| 740 |
+
"row_header": false,
|
| 741 |
+
"row_section": false,
|
| 742 |
+
"fillable": false
|
| 743 |
+
},
|
| 744 |
+
{
|
| 745 |
+
"row_span": 1,
|
| 746 |
+
"col_span": 1,
|
| 747 |
+
"start_row_offset_idx": 3,
|
| 748 |
+
"end_row_offset_idx": 4,
|
| 749 |
+
"start_col_offset_idx": 0,
|
| 750 |
+
"end_col_offset_idx": 1,
|
| 751 |
+
"text": "cell 3,0",
|
| 752 |
+
"column_header": false,
|
| 753 |
+
"row_header": false,
|
| 754 |
+
"row_section": false,
|
| 755 |
+
"fillable": false
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"row_span": 1,
|
| 759 |
+
"col_span": 1,
|
| 760 |
+
"start_row_offset_idx": 3,
|
| 761 |
+
"end_row_offset_idx": 4,
|
| 762 |
+
"start_col_offset_idx": 1,
|
| 763 |
+
"end_col_offset_idx": 2,
|
| 764 |
+
"text": "cell 3,1",
|
| 765 |
+
"column_header": false,
|
| 766 |
+
"row_header": false,
|
| 767 |
+
"row_section": false,
|
| 768 |
+
"fillable": false
|
| 769 |
+
}
|
| 770 |
+
],
|
| 771 |
+
"num_rows": 4,
|
| 772 |
+
"num_cols": 2,
|
| 773 |
+
"orientation": "rot_0",
|
| 774 |
+
"grid": [
|
| 775 |
+
[
|
| 776 |
+
{
|
| 777 |
+
"row_span": 1,
|
| 778 |
+
"col_span": 1,
|
| 779 |
+
"start_row_offset_idx": 0,
|
| 780 |
+
"end_row_offset_idx": 1,
|
| 781 |
+
"start_col_offset_idx": 0,
|
| 782 |
+
"end_col_offset_idx": 1,
|
| 783 |
+
"text": "cell 0,0",
|
| 784 |
+
"column_header": false,
|
| 785 |
+
"row_header": false,
|
| 786 |
+
"row_section": false,
|
| 787 |
+
"fillable": false
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"row_span": 1,
|
| 791 |
+
"col_span": 1,
|
| 792 |
+
"start_row_offset_idx": 0,
|
| 793 |
+
"end_row_offset_idx": 1,
|
| 794 |
+
"start_col_offset_idx": 1,
|
| 795 |
+
"end_col_offset_idx": 2,
|
| 796 |
+
"text": "cell 0,1",
|
| 797 |
+
"column_header": false,
|
| 798 |
+
"row_header": false,
|
| 799 |
+
"row_section": false,
|
| 800 |
+
"fillable": false
|
| 801 |
+
}
|
| 802 |
+
],
|
| 803 |
+
[
|
| 804 |
+
{
|
| 805 |
+
"row_span": 1,
|
| 806 |
+
"col_span": 1,
|
| 807 |
+
"start_row_offset_idx": 1,
|
| 808 |
+
"end_row_offset_idx": 2,
|
| 809 |
+
"start_col_offset_idx": 0,
|
| 810 |
+
"end_col_offset_idx": 1,
|
| 811 |
+
"text": "cell 1,0",
|
| 812 |
+
"column_header": false,
|
| 813 |
+
"row_header": false,
|
| 814 |
+
"row_section": false,
|
| 815 |
+
"fillable": false
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"row_span": 1,
|
| 819 |
+
"col_span": 1,
|
| 820 |
+
"start_row_offset_idx": 1,
|
| 821 |
+
"end_row_offset_idx": 2,
|
| 822 |
+
"start_col_offset_idx": 1,
|
| 823 |
+
"end_col_offset_idx": 2,
|
| 824 |
+
"text": "",
|
| 825 |
+
"column_header": false,
|
| 826 |
+
"row_header": false,
|
| 827 |
+
"row_section": false,
|
| 828 |
+
"fillable": false
|
| 829 |
+
}
|
| 830 |
+
],
|
| 831 |
+
[
|
| 832 |
+
{
|
| 833 |
+
"row_span": 1,
|
| 834 |
+
"col_span": 1,
|
| 835 |
+
"start_row_offset_idx": 2,
|
| 836 |
+
"end_row_offset_idx": 3,
|
| 837 |
+
"start_col_offset_idx": 0,
|
| 838 |
+
"end_col_offset_idx": 1,
|
| 839 |
+
"text": "cell 2,0",
|
| 840 |
+
"column_header": false,
|
| 841 |
+
"row_header": false,
|
| 842 |
+
"row_section": false,
|
| 843 |
+
"fillable": false
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"row_span": 1,
|
| 847 |
+
"col_span": 1,
|
| 848 |
+
"start_row_offset_idx": 2,
|
| 849 |
+
"end_row_offset_idx": 3,
|
| 850 |
+
"start_col_offset_idx": 1,
|
| 851 |
+
"end_col_offset_idx": 2,
|
| 852 |
+
"text": "cell 2,1",
|
| 853 |
+
"column_header": false,
|
| 854 |
+
"row_header": false,
|
| 855 |
+
"row_section": false,
|
| 856 |
+
"fillable": false
|
| 857 |
+
}
|
| 858 |
+
],
|
| 859 |
+
[
|
| 860 |
+
{
|
| 861 |
+
"row_span": 1,
|
| 862 |
+
"col_span": 1,
|
| 863 |
+
"start_row_offset_idx": 3,
|
| 864 |
+
"end_row_offset_idx": 4,
|
| 865 |
+
"start_col_offset_idx": 0,
|
| 866 |
+
"end_col_offset_idx": 1,
|
| 867 |
+
"text": "cell 3,0",
|
| 868 |
+
"column_header": false,
|
| 869 |
+
"row_header": false,
|
| 870 |
+
"row_section": false,
|
| 871 |
+
"fillable": false
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"row_span": 1,
|
| 875 |
+
"col_span": 1,
|
| 876 |
+
"start_row_offset_idx": 3,
|
| 877 |
+
"end_row_offset_idx": 4,
|
| 878 |
+
"start_col_offset_idx": 1,
|
| 879 |
+
"end_col_offset_idx": 2,
|
| 880 |
+
"text": "cell 3,1",
|
| 881 |
+
"column_header": false,
|
| 882 |
+
"row_header": false,
|
| 883 |
+
"row_section": false,
|
| 884 |
+
"fillable": false
|
| 885 |
+
}
|
| 886 |
+
]
|
| 887 |
+
]
|
| 888 |
+
},
|
| 889 |
+
"annotations": []
|
| 890 |
+
}
|
| 891 |
+
],
|
| 892 |
+
"key_value_items": [],
|
| 893 |
+
"form_items": [],
|
| 894 |
+
"field_regions": [
|
| 895 |
+
{
|
| 896 |
+
"self_ref": "#/field_regions/0",
|
| 897 |
+
"parent": {
|
| 898 |
+
"$ref": "#/body"
|
| 899 |
+
},
|
| 900 |
+
"children": [
|
| 901 |
+
{
|
| 902 |
+
"$ref": "#/texts/30"
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"$ref": "#/field_items/0"
|
| 906 |
+
}
|
| 907 |
+
],
|
| 908 |
+
"content_layer": "body",
|
| 909 |
+
"label": "field_region",
|
| 910 |
+
"prov": []
|
| 911 |
+
}
|
| 912 |
+
],
|
| 913 |
+
"field_items": [
|
| 914 |
+
{
|
| 915 |
+
"self_ref": "#/field_items/0",
|
| 916 |
+
"parent": {
|
| 917 |
+
"$ref": "#/field_regions/0"
|
| 918 |
+
},
|
| 919 |
+
"children": [
|
| 920 |
+
{
|
| 921 |
+
"$ref": "#/texts/31"
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"$ref": "#/texts/32"
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"$ref": "#/texts/33"
|
| 928 |
+
}
|
| 929 |
+
],
|
| 930 |
+
"content_layer": "body",
|
| 931 |
+
"label": "field_item",
|
| 932 |
+
"prov": []
|
| 933 |
+
}
|
| 934 |
+
],
|
| 935 |
+
"pages": {}
|
| 936 |
+
}
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/group_with_metadata.yaml
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
body:
|
| 2 |
+
children:
|
| 3 |
+
- $ref: '#/groups/0'
|
| 4 |
+
content_layer: body
|
| 5 |
+
label: unspecified
|
| 6 |
+
meta:
|
| 7 |
+
summary:
|
| 8 |
+
text: This document talks about various topics.
|
| 9 |
+
name: _root_
|
| 10 |
+
self_ref: '#/body'
|
| 11 |
+
form_items: []
|
| 12 |
+
furniture:
|
| 13 |
+
children: []
|
| 14 |
+
content_layer: furniture
|
| 15 |
+
label: unspecified
|
| 16 |
+
name: _root_
|
| 17 |
+
self_ref: '#/furniture'
|
| 18 |
+
groups:
|
| 19 |
+
- children:
|
| 20 |
+
- $ref: '#/texts/0'
|
| 21 |
+
- $ref: '#/groups/1'
|
| 22 |
+
- $ref: '#/groups/3'
|
| 23 |
+
content_layer: body
|
| 24 |
+
label: chapter
|
| 25 |
+
meta:
|
| 26 |
+
summary:
|
| 27 |
+
text: This chapter discusses foo and bar.
|
| 28 |
+
name: '1'
|
| 29 |
+
parent:
|
| 30 |
+
$ref: '#/body'
|
| 31 |
+
self_ref: '#/groups/0'
|
| 32 |
+
- children:
|
| 33 |
+
- $ref: '#/texts/1'
|
| 34 |
+
- $ref: '#/groups/2'
|
| 35 |
+
content_layer: body
|
| 36 |
+
label: section
|
| 37 |
+
meta:
|
| 38 |
+
my_corp__test_1: custom field value 1
|
| 39 |
+
summary:
|
| 40 |
+
text: This section talks about foo.
|
| 41 |
+
name: 1a
|
| 42 |
+
parent:
|
| 43 |
+
$ref: '#/groups/0'
|
| 44 |
+
self_ref: '#/groups/1'
|
| 45 |
+
- children:
|
| 46 |
+
- $ref: '#/texts/2'
|
| 47 |
+
- $ref: '#/texts/3'
|
| 48 |
+
content_layer: body
|
| 49 |
+
label: list
|
| 50 |
+
meta:
|
| 51 |
+
summary:
|
| 52 |
+
text: Here some foo specifics are listed.
|
| 53 |
+
name: group
|
| 54 |
+
parent:
|
| 55 |
+
$ref: '#/groups/1'
|
| 56 |
+
self_ref: '#/groups/2'
|
| 57 |
+
- children:
|
| 58 |
+
- $ref: '#/texts/4'
|
| 59 |
+
content_layer: body
|
| 60 |
+
label: section
|
| 61 |
+
meta:
|
| 62 |
+
my_corp__test_2: custom field value 2
|
| 63 |
+
summary:
|
| 64 |
+
text: This section talks about bar.
|
| 65 |
+
name: 1b
|
| 66 |
+
parent:
|
| 67 |
+
$ref: '#/groups/0'
|
| 68 |
+
self_ref: '#/groups/3'
|
| 69 |
+
key_value_items: []
|
| 70 |
+
name: ''
|
| 71 |
+
pages: {}
|
| 72 |
+
pictures: []
|
| 73 |
+
schema_name: DoclingDocument
|
| 74 |
+
tables: []
|
| 75 |
+
texts:
|
| 76 |
+
- children: []
|
| 77 |
+
content_layer: body
|
| 78 |
+
label: text
|
| 79 |
+
orig: This is some introductory text.
|
| 80 |
+
parent:
|
| 81 |
+
$ref: '#/groups/0'
|
| 82 |
+
prov: []
|
| 83 |
+
self_ref: '#/texts/0'
|
| 84 |
+
text: This is some introductory text.
|
| 85 |
+
- children: []
|
| 86 |
+
content_layer: body
|
| 87 |
+
label: text
|
| 88 |
+
meta:
|
| 89 |
+
summary:
|
| 90 |
+
text: This paragraph provides more details about foo.
|
| 91 |
+
orig: Regarding foo...
|
| 92 |
+
parent:
|
| 93 |
+
$ref: '#/groups/1'
|
| 94 |
+
prov: []
|
| 95 |
+
self_ref: '#/texts/1'
|
| 96 |
+
text: Regarding foo...
|
| 97 |
+
- children: []
|
| 98 |
+
content_layer: body
|
| 99 |
+
enumerated: true
|
| 100 |
+
label: list_item
|
| 101 |
+
marker: ''
|
| 102 |
+
orig: lorem
|
| 103 |
+
parent:
|
| 104 |
+
$ref: '#/groups/2'
|
| 105 |
+
prov: []
|
| 106 |
+
self_ref: '#/texts/2'
|
| 107 |
+
text: lorem
|
| 108 |
+
- children: []
|
| 109 |
+
content_layer: body
|
| 110 |
+
enumerated: true
|
| 111 |
+
label: list_item
|
| 112 |
+
marker: ''
|
| 113 |
+
orig: ipsum
|
| 114 |
+
parent:
|
| 115 |
+
$ref: '#/groups/2'
|
| 116 |
+
prov: []
|
| 117 |
+
self_ref: '#/texts/3'
|
| 118 |
+
text: ipsum
|
| 119 |
+
- children: []
|
| 120 |
+
content_layer: body
|
| 121 |
+
label: text
|
| 122 |
+
orig: Regarding bar...
|
| 123 |
+
parent:
|
| 124 |
+
$ref: '#/groups/3'
|
| 125 |
+
prov: []
|
| 126 |
+
self_ref: '#/texts/4'
|
| 127 |
+
text: Regarding bar...
|
| 128 |
+
version: 1.10.0
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/group_with_metadata_allowed_meta_names.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This is some introductory text.
|
| 2 |
+
|
| 3 |
+
Regarding foo...
|
| 4 |
+
|
| 5 |
+
1. lorem
|
| 6 |
+
2. ipsum
|
| 7 |
+
|
| 8 |
+
[My Corp Test 1] custom field value 1
|
| 9 |
+
|
| 10 |
+
Regarding bar...
|
tasks/tasksmith-0ba04a338dbb/tests/source/tests/data/doc/group_with_metadata_blocked_meta_names.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This is some introductory text.
|
| 2 |
+
|
| 3 |
+
Regarding foo...
|
| 4 |
+
|
| 5 |
+
1. lorem
|
| 6 |
+
2. ipsum
|
| 7 |
+
|
| 8 |
+
Regarding bar...
|
| 9 |
+
|
| 10 |
+
[My Corp Test 2] custom field value 2
|