data-science-document-ai 1.40.2__py3-none-any.whl → 1.40.3__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.
- {data_science_document_ai-1.40.2.dist-info → data_science_document_ai-1.40.3.dist-info}/METADATA +1 -1
- {data_science_document_ai-1.40.2.dist-info → data_science_document_ai-1.40.3.dist-info}/RECORD +4 -4
- {data_science_document_ai-1.40.2.dist-info → data_science_document_ai-1.40.3.dist-info}/WHEEL +1 -1
- src/postprocessing/common.py +5 -4
{data_science_document_ai-1.40.2.dist-info → data_science_document_ai-1.40.3.dist-info}/RECORD
RENAMED
|
@@ -7,7 +7,7 @@ src/io.py,sha256=IXz4wWqiHa9mnHNgtrC6X9M2lItYp9eu6rHCThUIh5c,3585
|
|
|
7
7
|
src/llm.py,sha256=aEK3rL8XvY7CakvkOJQmcHpEKwZRd8PPrLrzHiO-GFk,7827
|
|
8
8
|
src/log_setup.py,sha256=RhHnpXqcl-ii4EJzRt47CF2R-Q3YPF68tepg_Kg7tkw,2895
|
|
9
9
|
src/pdf_processing.py,sha256=S_eTsgaDIIr3SCrEmaQZyc7TDJlRI0GCuP0P9EGF1Xc,15385
|
|
10
|
-
src/postprocessing/common.py,sha256=
|
|
10
|
+
src/postprocessing/common.py,sha256=ll7VMEJ_51OeczcV8Uw-aVrufV3kd3kNLCmss3kt0Do,19291
|
|
11
11
|
src/postprocessing/postprocess_booking_confirmation.py,sha256=nK32eDiBNbauyQz0oCa9eraysku8aqzrcoRFoWVumDU,4827
|
|
12
12
|
src/postprocessing/postprocess_commercial_invoice.py,sha256=3I8ijluTZcOs_sMnFZxfkAPle0UFQ239EMuvZfDZVPg,1028
|
|
13
13
|
src/postprocessing/postprocess_partner_invoice.py,sha256=cM4te4qjOI_bXyrF8Zhb6X7eNf5aMKoRaPCFfqFv-98,11538
|
|
@@ -54,6 +54,6 @@ src/prompts/prompt_library.py,sha256=VJWHeXN-s501C2GiidIIvQQuZdU6T1R27hE2dKBiI40
|
|
|
54
54
|
src/setup.py,sha256=kPSZosrICfaGZeDaajr40Ha7Ok4XK4fo_uq35Omiwr0,7128
|
|
55
55
|
src/tms.py,sha256=UXbIo1QE--hIX6NZi5Qyp2R_CP338syrY9pCTPrfgnE,1741
|
|
56
56
|
src/utils.py,sha256=-1Yq_5ExZlFQRUPRsQHiBD3TthNSiPVPp46Dvdb9Kf0,13830
|
|
57
|
-
data_science_document_ai-1.40.
|
|
58
|
-
data_science_document_ai-1.40.
|
|
59
|
-
data_science_document_ai-1.40.
|
|
57
|
+
data_science_document_ai-1.40.3.dist-info/METADATA,sha256=ym7EzwlZAar6Qvx0GgwVQM44p30sw74-nrPl7Liyg_8,2153
|
|
58
|
+
data_science_document_ai-1.40.3.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
59
|
+
data_science_document_ai-1.40.3.dist-info/RECORD,,
|
src/postprocessing/common.py
CHANGED
|
@@ -425,10 +425,12 @@ async def format_label(entity_k, entity_value, document_type_code, params):
|
|
|
425
425
|
# Remove all non-alphanumeric characters like ' ', '-', etc.
|
|
426
426
|
formatted_value = convert_container_number(entity_value)
|
|
427
427
|
|
|
428
|
-
elif (
|
|
429
|
-
|
|
428
|
+
elif any(
|
|
429
|
+
numeric_indicator in entity_key
|
|
430
|
+
for numeric_indicator in ["measurements", "weight"]
|
|
430
431
|
):
|
|
431
|
-
formatted_value =
|
|
432
|
+
formatted_value = extract_number(entity_value)
|
|
433
|
+
|
|
432
434
|
elif any(
|
|
433
435
|
packaging_type in entity_key
|
|
434
436
|
for packaging_type in ["packagingtype", "packagetype", "currency"]
|
|
@@ -447,7 +449,6 @@ async def format_label(entity_k, entity_value, document_type_code, params):
|
|
|
447
449
|
elif any(
|
|
448
450
|
numeric_indicator in entity_key
|
|
449
451
|
for numeric_indicator in [
|
|
450
|
-
"weight",
|
|
451
452
|
"quantity",
|
|
452
453
|
"value",
|
|
453
454
|
"amount",
|