docling-core 1.4.0__py3-none-any.whl → 1.4.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.

Potentially problematic release.


This version of docling-core might be problematic. Click here for more details.

@@ -410,21 +410,21 @@ class DocumentToken(Enum):
410
410
  special_tokens = [token.value for token in cls]
411
411
 
412
412
  # Adding dynamically generated row and col tokens
413
- for i in range(0, max_rows):
413
+ for i in range(0, max_rows + 1):
414
414
  special_tokens += [f"<row_{i}>", f"</row_{i}>"]
415
415
 
416
- for i in range(0, max_cols):
416
+ for i in range(0, max_cols + 1):
417
417
  special_tokens += [f"<col_{i}>", f"</col_{i}>"]
418
418
 
419
419
  for i in range(6):
420
420
  special_tokens += [f"<section-header-{i}>", f"</section-header-{i}>"]
421
421
 
422
422
  # Adding dynamically generated page-tokens
423
- for i in range(0, max_pages):
423
+ for i in range(0, max_pages + 1):
424
424
  special_tokens.append(f"<page_{i}>")
425
425
 
426
426
  # Adding dynamically generated location-tokens
427
- for i in range(0, max(page_dimension[0], page_dimension[1])):
427
+ for i in range(0, max(page_dimension[0] + 1, page_dimension[1] + 1)):
428
428
  special_tokens.append(f"<loc_{i}>")
429
429
 
430
430
  return special_tokens
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: docling-core
3
- Version: 1.4.0
3
+ Version: 1.4.1
4
4
  Summary: A python library to define and validate data types in Docling.
5
5
  Home-page: https://ds4sd.github.io/
6
6
  License: MIT
@@ -24,7 +24,7 @@ docling_core/types/doc/base.py,sha256=5qO6E9HZz_6oM2KPfDPyAoZkSrgMFKd4skomS94g9d
24
24
  docling_core/types/doc/doc_ann.py,sha256=8pV2efUglw19jxl4_oqB__mSxjWvtGIcllyCdqA-b2s,1196
25
25
  docling_core/types/doc/doc_ocr.py,sha256=6PC0C-OczF-MyfgRxEI1xs3PWgNOzi7i2yEQbTqZz0I,1387
26
26
  docling_core/types/doc/doc_raw.py,sha256=Y69G6IiauNDaoT-5el4xo1ypWpnBJQ75akGGkCMTZSc,3888
27
- docling_core/types/doc/document.py,sha256=6puIPc3aK3kecklCFqVgJXgU4gvGPqjuXePx82poFYE,26934
27
+ docling_core/types/doc/document.py,sha256=hU5pJQlqjPYpXtE4HwSOlME1JnxNh1k3x239fR69y7s,26954
28
28
  docling_core/types/gen/__init__.py,sha256=C6TuCfvpSnSL5XDOFMcYHUY2-i08vvfOGRcdu6Af0pI,124
29
29
  docling_core/types/gen/generic.py,sha256=l4CZ4_Lb8ONG36WNJWbKX5hGKvTh_yU-hXp5hsm7uVU,844
30
30
  docling_core/types/nlp/__init__.py,sha256=hGcztAeVK7xkRBqRRvc4zbY4PGeJ0r0QrEsetnSx9nI,119
@@ -43,8 +43,8 @@ docling_core/utils/ds_generate_docs.py,sha256=0xGBagdC_PGjyeHXYZo90VnVrSTMZgHb0S
43
43
  docling_core/utils/ds_generate_jsonschema.py,sha256=EhNQutqWJFWuN-yl9UUPFZ7DJTvGqg54qBIvUMHTHdA,1647
44
44
  docling_core/utils/validate.py,sha256=3FmnxnKTDZC5J9OGxCL3U3DGRl0t0bBV1NcySXswdas,2031
45
45
  docling_core/utils/validators.py,sha256=fBdyWX4PvFh7o_d25ZTs4iwmeo75QTbrxsvXv2kXkTg,2777
46
- docling_core-1.4.0.dist-info/LICENSE,sha256=2M9-6EoQ1sxFztTOkXGAtwUDJvnWaAHdB9BYWVwGkIw,1087
47
- docling_core-1.4.0.dist-info/METADATA,sha256=38Mr22u1ht8OoUDwYIFc-Y43v1bs8irQqmS0b6ecXpQ,5432
48
- docling_core-1.4.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
49
- docling_core-1.4.0.dist-info/entry_points.txt,sha256=XHhtJEkdUuLxXSNxLdFIzx_siQ3z2UFQEKp-P8VYAE4,189
50
- docling_core-1.4.0.dist-info/RECORD,,
46
+ docling_core-1.4.1.dist-info/LICENSE,sha256=2M9-6EoQ1sxFztTOkXGAtwUDJvnWaAHdB9BYWVwGkIw,1087
47
+ docling_core-1.4.1.dist-info/METADATA,sha256=Asvq_bUJGPBDdR3-7h9GSeel24A5ldFJHAMPfXpOSXc,5432
48
+ docling_core-1.4.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
49
+ docling_core-1.4.1.dist-info/entry_points.txt,sha256=XHhtJEkdUuLxXSNxLdFIzx_siQ3z2UFQEKp-P8VYAE4,189
50
+ docling_core-1.4.1.dist-info/RECORD,,