docling 1.1.0__py3-none-any.whl → 1.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -114,12 +114,15 @@ class TableStructureModel:
114
114
  for element in table_out["tf_responses"]:
115
115
 
116
116
  if not self.do_cell_matching:
117
- the_bbox = BoundingBox.model_validate(element["bbox"])
117
+ the_bbox = BoundingBox.model_validate(
118
+ element["bbox"]
119
+ ).scaled(1 / self.scale)
118
120
  text_piece = page._backend.get_text_in_rect(the_bbox)
119
121
  element["bbox"]["token"] = text_piece
120
122
 
121
123
  tc = TableCell.model_validate(element)
122
- tc.bbox = tc.bbox.scaled(1 / self.scale)
124
+ if self.do_cell_matching:
125
+ tc.bbox = tc.bbox.scaled(1 / self.scale)
123
126
  table_cells.append(tc)
124
127
 
125
128
  # Retrieving cols/rows, after post processing:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: docling
3
- Version: 1.1.0
3
+ Version: 1.1.1
4
4
  Summary: Docling PDF conversion package
5
5
  Home-page: https://github.com/DS4SD/docling
6
6
  License: MIT
@@ -12,14 +12,14 @@ docling/models/ds_glm_model.py,sha256=wmb--2JKFQby-kvidw6PyM8wURPXYPQ_Z_eKKCBAdY
12
12
  docling/models/easyocr_model.py,sha256=NaHVs8IN0eW9KB076E2Kae1s-bq74_4IMWueze9QqtE,2290
13
13
  docling/models/layout_model.py,sha256=4AfPFiu6pXc8wIQ1sQlEZnHRt7SnBmfzDdctiRveOWw,10944
14
14
  docling/models/page_assemble_model.py,sha256=8eoG2WiFxPxq9TPvM-wkngb2gkr0tdtCRVXg1JcTETo,5550
15
- docling/models/table_structure_model.py,sha256=ryZrmkNkCbw5SCpgdQabkmcRAEi_4VqOMv2VGdpvGZo,5499
15
+ docling/models/table_structure_model.py,sha256=xUmfunZNYC30P0fRdESdztqy1FVlMzlhJjLBp-xcn4A,5638
16
16
  docling/pipeline/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  docling/pipeline/base_model_pipeline.py,sha256=ozHdJak0yQAxQf7pQN_C480vI35A2e5KL5Qq1xSkq5c,560
18
18
  docling/pipeline/standard_model_pipeline.py,sha256=UTwodKUKrisLoVcntbNUBDhjzRyFvpdUvyVw-gNmBlM,1541
19
19
  docling/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  docling/utils/layout_utils.py,sha256=FOFbL0hKzUoWXdZaeUvEtFqKv0IkPifIr4sdGW4suKs,31804
21
21
  docling/utils/utils.py,sha256=llhXSbIDNZ1MHOwBEfLHBAoJIAYI7QlPIonlI1jLUJ0,1208
22
- docling-1.1.0.dist-info/LICENSE,sha256=ACwmltkrXIz5VsEQcrqljq-fat6ZXAMepjXGoe40KtE,1069
23
- docling-1.1.0.dist-info/METADATA,sha256=mUAryQOsHRejcJ3Qb4zFvRVWpcKX0e4aycnJM_OE0o0,6759
24
- docling-1.1.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
25
- docling-1.1.0.dist-info/RECORD,,
22
+ docling-1.1.1.dist-info/LICENSE,sha256=ACwmltkrXIz5VsEQcrqljq-fat6ZXAMepjXGoe40KtE,1069
23
+ docling-1.1.1.dist-info/METADATA,sha256=hnIPHm49bjWcFKBSCJ-aPsqim6aqHkWZiMdhkQli9Lk,6759
24
+ docling-1.1.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
25
+ docling-1.1.1.dist-info/RECORD,,