Add files using upload-large-folder tool
Browse files- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00098.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00099.json +40 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00100.json +48 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00101.json +40 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00102.json +56 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00103.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00104.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00105.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00106.json +48 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00107.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00108.json +56 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00109.json +48 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00110.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00111.json +40 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00112.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00113.json +56 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00114.json +56 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00115.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00116.json +56 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00117.json +40 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00118.json +56 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00119.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00120.json +56 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00121.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00122.json +48 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00123.json +48 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00124.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00125.json +40 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00126.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00127.json +56 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00128.json +48 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00129.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00130.json +56 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00131.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00132.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00133.json +40 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00134.json +40 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00135.json +56 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00136.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00137.json +56 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00138.json +40 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00139.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00140.json +48 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00141.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00142.json +48 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00143.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00144.json +32 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00145.json +56 -0
- durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00146.json +40 -0
- layoutaware_ner.ipynb +1408 -0
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00098.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "24/445",
|
| 5 |
+
"invoice_date": "18/07/2025",
|
| 6 |
+
"seller": "SINGH ELECTRONICS H.No. 94, Dhawan Road, Uluberia 261107",
|
| 7 |
+
"client": "NAKUL ROUT H.No. 889, Bhat Circle, Visakhapatnam 758457",
|
| 8 |
+
"shipping_address": "55/655, Dar Chowk, Mau 622197",
|
| 9 |
+
"seller_tax_id": "01NVDPT6891V1ZK",
|
| 10 |
+
"client_tax_id": "10ZYZAB3179B1Z6",
|
| 11 |
+
"client_phone": "+916346574312"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Sony Speaker SON-928E",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "89,159.95",
|
| 18 |
+
"item_net_worth": "89,159.95",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8518"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹89,159.95",
|
| 25 |
+
"total_vat": "₹16,048.79",
|
| 26 |
+
"total_gross_worth": "₹105,208.74",
|
| 27 |
+
"total_cgst": "₹8,024.40",
|
| 28 |
+
"total_sgst": "₹8,024.40",
|
| 29 |
+
"total_igst": "₹0.00"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00099.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "QTM/141",
|
| 5 |
+
"invoice_date": "04/09/2025",
|
| 6 |
+
"seller": "STAR ELECTRONICS H.No. 419, Khosla Street, Noida 730951",
|
| 7 |
+
"client": "VASATIKA KUMAR 767, Om Zila, Chennai 252852",
|
| 8 |
+
"shipping_address": "767, Om Zila, Chennai 252852",
|
| 9 |
+
"seller_tax_id": "23UGWSV9551G1ZL",
|
| 10 |
+
"client_tax_id": "18KJGHJ6973L1ZS",
|
| 11 |
+
"client_phone": "2691355356"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Hero Bike HER-977C",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "28,458.66",
|
| 18 |
+
"item_net_worth": "28,458.66",
|
| 19 |
+
"item_vat": "28%",
|
| 20 |
+
"item_hsn": "8711"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Fire-Boltt Smartwatch FIR-663O",
|
| 24 |
+
"item_qty": "1",
|
| 25 |
+
"item_net_price": "49,694.62",
|
| 26 |
+
"item_net_worth": "49,694.62",
|
| 27 |
+
"item_vat": "28%",
|
| 28 |
+
"item_hsn": "8517"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"summary": {
|
| 32 |
+
"total_net_worth": "₹78,153.28",
|
| 33 |
+
"total_vat": "₹21,882.92",
|
| 34 |
+
"total_gross_worth": "₹100,036.20",
|
| 35 |
+
"total_cgst": "₹0.00",
|
| 36 |
+
"total_sgst": "₹0.00",
|
| 37 |
+
"total_igst": "₹21,882.92"
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00100.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "PYF/465",
|
| 5 |
+
"invoice_date": "14/07/2025",
|
| 6 |
+
"seller": "MOBILE POINT 42/53, Srivastava Nagar, Howrah-350238",
|
| 7 |
+
"client": "EKANI VENKATESH 10/16, Buch, Tiruppur 632411",
|
| 8 |
+
"shipping_address": "10/16, Buch, Tiruppur 632411",
|
| 9 |
+
"seller_tax_id": "01YAMYQ9558X1ZQ",
|
| 10 |
+
"client_tax_id": "07NLFBX9801U1Z1",
|
| 11 |
+
"client_phone": "3071027108"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Hero Bike HER-732U",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "23,593.07",
|
| 18 |
+
"item_net_worth": "23,593.07",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8711"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Xiaomi Tablets XIA-608X",
|
| 24 |
+
"item_qty": "2",
|
| 25 |
+
"item_net_price": "79,417.67",
|
| 26 |
+
"item_net_worth": "158,835.34",
|
| 27 |
+
"item_vat": "18%",
|
| 28 |
+
"item_hsn": "8471"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "Hero Bike HER-246I",
|
| 32 |
+
"item_qty": "2",
|
| 33 |
+
"item_net_price": "73,169.55",
|
| 34 |
+
"item_net_worth": "146,339.10",
|
| 35 |
+
"item_vat": "18%",
|
| 36 |
+
"item_hsn": "8711"
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"summary": {
|
| 40 |
+
"total_net_worth": "₹328,767.51",
|
| 41 |
+
"total_vat": "₹59,178.15",
|
| 42 |
+
"total_gross_worth": "₹387,945.66",
|
| 43 |
+
"total_cgst": "₹0.00",
|
| 44 |
+
"total_sgst": "₹0.00",
|
| 45 |
+
"total_igst": "₹59,178.15"
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00101.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "24/992",
|
| 5 |
+
"invoice_date": "19/06/2025",
|
| 6 |
+
"seller": "SUPREME ELECTRONICS H.No. 91, Baria Chowk, Gorakhpur-824779",
|
| 7 |
+
"client": "UPMA SARAN 216, Wali Path, Chinsurah-118751",
|
| 8 |
+
"shipping_address": "216, Wali Path, Chinsurah-118751",
|
| 9 |
+
"seller_tax_id": "37OVINF3874R1ZB",
|
| 10 |
+
"client_tax_id": "17ICLYY1888F1Z8",
|
| 11 |
+
"client_phone": "06293207209"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Boat Speaker BOA-326J",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "18,571.37",
|
| 18 |
+
"item_net_worth": "37,142.74",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8518"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "IFB Microwave IFB-313U",
|
| 24 |
+
"item_qty": "2",
|
| 25 |
+
"item_net_price": "74,261.90",
|
| 26 |
+
"item_net_worth": "148,523.80",
|
| 27 |
+
"item_vat": "18%",
|
| 28 |
+
"item_hsn": "8516"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"summary": {
|
| 32 |
+
"total_net_worth": "₹185,666.54",
|
| 33 |
+
"total_vat": "₹33,419.98",
|
| 34 |
+
"total_gross_worth": "₹219,086.52",
|
| 35 |
+
"total_cgst": "₹16,709.99",
|
| 36 |
+
"total_sgst": "₹16,709.99",
|
| 37 |
+
"total_igst": "₹0.00"
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00102.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "FIR/975",
|
| 5 |
+
"invoice_date": "16/07/2025",
|
| 6 |
+
"seller": "PATEL MOBILES 68/295, Tella Zila, Kurnool-594681",
|
| 7 |
+
"client": "RAKSHA BHATNAGAR 46, Ramachandran Circle, Udaipur-943032",
|
| 8 |
+
"shipping_address": "H.No. 07, Mall Street, Fatehpur-644619",
|
| 9 |
+
"seller_tax_id": "25EOVOT1628Q1ZA",
|
| 10 |
+
"client_tax_id": "27MFJZY7459H1ZD",
|
| 11 |
+
"client_phone": "+919069454273"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Canon Camera CAN-353M",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "31,044.45",
|
| 18 |
+
"item_net_worth": "31,044.45",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8525"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Apple Tablets APP-140A",
|
| 24 |
+
"item_qty": "1",
|
| 25 |
+
"item_net_price": "18,391.45",
|
| 26 |
+
"item_net_worth": "18,391.45",
|
| 27 |
+
"item_vat": "18%",
|
| 28 |
+
"item_hsn": "8471"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "Sennheiser Headphones SEN-133X",
|
| 32 |
+
"item_qty": "1",
|
| 33 |
+
"item_net_price": "44,683.39",
|
| 34 |
+
"item_net_worth": "44,683.39",
|
| 35 |
+
"item_vat": "18%",
|
| 36 |
+
"item_hsn": "8518"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"item_desc": "Whirlpool Refrigerator WHI-351I",
|
| 40 |
+
"item_qty": "1",
|
| 41 |
+
"item_net_price": "26,343.27",
|
| 42 |
+
"item_net_worth": "26,343.27",
|
| 43 |
+
"item_vat": "18%",
|
| 44 |
+
"item_hsn": "8418"
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"summary": {
|
| 48 |
+
"total_net_worth": "₹120,462.56",
|
| 49 |
+
"total_vat": "₹21,683.26",
|
| 50 |
+
"total_gross_worth": "₹142,145.82",
|
| 51 |
+
"total_cgst": "₹0.00",
|
| 52 |
+
"total_sgst": "₹0.00",
|
| 53 |
+
"total_igst": "₹21,683.26"
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00103.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "KRN/824",
|
| 5 |
+
"invoice_date": "08/10/2025",
|
| 6 |
+
"seller": "SUPREME ELECTRONICS 89, Pau Path, Guntur-089782",
|
| 7 |
+
"client": "CHATRESH SHANKAR 89/727, Pathak Ganj, Arrah 705007",
|
| 8 |
+
"shipping_address": "89/727, Pathak Ganj, Arrah 705007",
|
| 9 |
+
"seller_tax_id": "08WPERQ6549L1ZX",
|
| 10 |
+
"client_tax_id": "21NTWDJ7661I1Z8",
|
| 11 |
+
"client_phone": "04457460836"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Bosch Washing Machine BOS-809Q",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "34,940.07",
|
| 18 |
+
"item_net_worth": "34,940.07",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8450"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹34,940.07",
|
| 25 |
+
"total_vat": "₹6,289.21",
|
| 26 |
+
"total_gross_worth": "₹41,229.28",
|
| 27 |
+
"total_cgst": "₹0.00",
|
| 28 |
+
"total_sgst": "₹0.00",
|
| 29 |
+
"total_igst": "₹6,289.21"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00104.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "INV-2023-5808",
|
| 5 |
+
"invoice_date": "27/02/2025",
|
| 6 |
+
"seller": "PRADHAN MOBILE SHOP 084, Mitra Road, Avadi-026388",
|
| 7 |
+
"client": "TAMANNA LAD 688, Karpe Ganj, North Dumdum-158379",
|
| 8 |
+
"shipping_address": "688, Karpe Ganj, North Dumdum-158379",
|
| 9 |
+
"seller_tax_id": "11GJWJF3744Q1ZM",
|
| 10 |
+
"client_tax_id": "21SQVTR1048R1ZJ",
|
| 11 |
+
"client_phone": "8557079921"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Nikon Camera NIK-276D",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "73,286.60",
|
| 18 |
+
"item_net_worth": "73,286.60",
|
| 19 |
+
"item_vat": "12%",
|
| 20 |
+
"item_hsn": "8525"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹73,286.60",
|
| 25 |
+
"total_vat": "₹8,794.39",
|
| 26 |
+
"total_gross_worth": "₹82,080.99",
|
| 27 |
+
"total_cgst": "₹4,397.20",
|
| 28 |
+
"total_sgst": "₹4,397.20",
|
| 29 |
+
"total_igst": "₹0.00"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00105.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "INV-2024-7091",
|
| 5 |
+
"invoice_date": "03/01/2025",
|
| 6 |
+
"seller": "ROYAL MOBILES 51, Chaudhari Road, Singrauli-143462",
|
| 7 |
+
"client": "ISHAAN LUTHRA H.No. 625, Tella Path, Parbhani-891298",
|
| 8 |
+
"shipping_address": "93/899, Kulkarni Ganj, Jalna-943231",
|
| 9 |
+
"seller_tax_id": "17DTRXJ5088L1Z8",
|
| 10 |
+
"client_tax_id": "22NKSQO6522O1Z1",
|
| 11 |
+
"client_phone": "02785977049"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Nikon Camera NIK-322B",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "41,241.36",
|
| 18 |
+
"item_net_worth": "41,241.36",
|
| 19 |
+
"item_vat": "12%",
|
| 20 |
+
"item_hsn": "8525"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹41,241.36",
|
| 25 |
+
"total_vat": "₹4,948.96",
|
| 26 |
+
"total_gross_worth": "₹46,190.32",
|
| 27 |
+
"total_cgst": "₹2,474.48",
|
| 28 |
+
"total_sgst": "₹2,474.48",
|
| 29 |
+
"total_igst": "₹0.00"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00106.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "INV-2024-9155",
|
| 5 |
+
"invoice_date": "01/06/2025",
|
| 6 |
+
"seller": "KUMAR TECH SOLUTIONS H.No. 968, Sheth Circle, Katihar 866943",
|
| 7 |
+
"client": "KRISHNA RAJ 01/618, Bhatia Chowk, Bathinda 328667",
|
| 8 |
+
"shipping_address": "01/618, Bhatia Chowk, Bathinda 328667",
|
| 9 |
+
"seller_tax_id": "04ADTEH0969N1ZN",
|
| 10 |
+
"client_tax_id": "21YDXEY9379F1ZQ",
|
| 11 |
+
"client_phone": "05841457512"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Bajaj Microwave BAJ-603K",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "67,222.97",
|
| 18 |
+
"item_net_worth": "67,222.97",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8516"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Fire-Boltt Smartwatch FIR-486D",
|
| 24 |
+
"item_qty": "2",
|
| 25 |
+
"item_net_price": "89,810.93",
|
| 26 |
+
"item_net_worth": "179,621.86",
|
| 27 |
+
"item_vat": "18%",
|
| 28 |
+
"item_hsn": "8517"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "Asus Laptops ASU-428Y",
|
| 32 |
+
"item_qty": "2",
|
| 33 |
+
"item_net_price": "59,259.20",
|
| 34 |
+
"item_net_worth": "118,518.40",
|
| 35 |
+
"item_vat": "18%",
|
| 36 |
+
"item_hsn": "8471"
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"summary": {
|
| 40 |
+
"total_net_worth": "₹365,363.23",
|
| 41 |
+
"total_vat": "₹65,765.38",
|
| 42 |
+
"total_gross_worth": "₹431,128.61",
|
| 43 |
+
"total_cgst": "₹0.00",
|
| 44 |
+
"total_sgst": "₹0.00",
|
| 45 |
+
"total_igst": "₹65,765.38"
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00107.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "24/248",
|
| 5 |
+
"invoice_date": "12/01/2025",
|
| 6 |
+
"seller": "GADGET GALAXY 89, Karan Chowk, Rajkot-359370",
|
| 7 |
+
"client": "INDIRA AGATE H.No. 620, Dyal Chowk, Mira-Bhayandar 394017",
|
| 8 |
+
"shipping_address": "94/43, Ganesh Zila, Nellore-950589",
|
| 9 |
+
"seller_tax_id": "19EYZHV2036R1Z4",
|
| 10 |
+
"client_tax_id": "30CLTCA5070E1ZK",
|
| 11 |
+
"client_phone": "+914457779169"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Noise Smartwatch NOI-134T",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "53,206.89",
|
| 18 |
+
"item_net_worth": "106,413.78",
|
| 19 |
+
"item_vat": "28%",
|
| 20 |
+
"item_hsn": "8517"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹106,413.78",
|
| 25 |
+
"total_vat": "₹29,795.86",
|
| 26 |
+
"total_gross_worth": "₹136,209.64",
|
| 27 |
+
"total_cgst": "₹14,897.93",
|
| 28 |
+
"total_sgst": "₹14,897.93",
|
| 29 |
+
"total_igst": "₹0.00"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00108.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "25/693",
|
| 5 |
+
"invoice_date": "09/04/2025",
|
| 6 |
+
"seller": "ELECTRONICS WORLD H.No. 95, Shere Circle, Sambhal 965379",
|
| 7 |
+
"client": "YOCHANA SAGAR 89, Menon Chowk, Akola-755035",
|
| 8 |
+
"shipping_address": "89, Menon Chowk, Akola-755035",
|
| 9 |
+
"seller_tax_id": "14WMMUI8520I1ZD",
|
| 10 |
+
"client_tax_id": "16ZSGFG7919K1ZZ",
|
| 11 |
+
"client_phone": "2460740785"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Whirlpool Refrigerator WHI-717Z",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "63,621.78",
|
| 18 |
+
"item_net_worth": "63,621.78",
|
| 19 |
+
"item_vat": "28%",
|
| 20 |
+
"item_hsn": "8418"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Amazfit Smartwatch AMA-787C",
|
| 24 |
+
"item_qty": "1",
|
| 25 |
+
"item_net_price": "62,686.42",
|
| 26 |
+
"item_net_worth": "62,686.42",
|
| 27 |
+
"item_vat": "28%",
|
| 28 |
+
"item_hsn": "8517"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "IFB Washing Machine IFB-567S",
|
| 32 |
+
"item_qty": "1",
|
| 33 |
+
"item_net_price": "37,860.68",
|
| 34 |
+
"item_net_worth": "37,860.68",
|
| 35 |
+
"item_vat": "28%",
|
| 36 |
+
"item_hsn": "8450"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"item_desc": "Samsung Tablets SAM-979B",
|
| 40 |
+
"item_qty": "1",
|
| 41 |
+
"item_net_price": "58,523.11",
|
| 42 |
+
"item_net_worth": "58,523.11",
|
| 43 |
+
"item_vat": "28%",
|
| 44 |
+
"item_hsn": "8471"
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"summary": {
|
| 48 |
+
"total_net_worth": "₹222,691.99",
|
| 49 |
+
"total_vat": "₹62,353.76",
|
| 50 |
+
"total_gross_worth": "₹285,045.75",
|
| 51 |
+
"total_cgst": "₹0.00",
|
| 52 |
+
"total_sgst": "₹0.00",
|
| 53 |
+
"total_igst": "₹62,353.76"
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00109.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "INV-2024-8559",
|
| 5 |
+
"invoice_date": "22/08/2025",
|
| 6 |
+
"seller": "SINGH ELECTRONICS H.No. 16, Narang Marg, Bhilai-886053",
|
| 7 |
+
"client": "LOHIT SAINI H.No. 90, Sibal Chowk, Jalandhar-417638",
|
| 8 |
+
"shipping_address": "H.No. 90, Sibal Chowk, Jalandhar-417638",
|
| 9 |
+
"seller_tax_id": "30OETKR5037I1ZM",
|
| 10 |
+
"client_tax_id": "30UCBLI3183J1ZW",
|
| 11 |
+
"client_phone": "00021072997"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Royal Enfield Bike ROY-658Q",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "75,993.93",
|
| 18 |
+
"item_net_worth": "151,987.86",
|
| 19 |
+
"item_vat": "28%",
|
| 20 |
+
"item_hsn": "8711"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Samsung Smartphones SAM-465P IMEI: 288273677741554",
|
| 24 |
+
"item_qty": "2",
|
| 25 |
+
"item_net_price": "59,653.91",
|
| 26 |
+
"item_net_worth": "119,307.82",
|
| 27 |
+
"item_vat": "28%",
|
| 28 |
+
"item_hsn": "8517"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "Nikon Camera NIK-639J",
|
| 32 |
+
"item_qty": "2",
|
| 33 |
+
"item_net_price": "45,985.37",
|
| 34 |
+
"item_net_worth": "91,970.74",
|
| 35 |
+
"item_vat": "28%",
|
| 36 |
+
"item_hsn": "8525"
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"summary": {
|
| 40 |
+
"total_net_worth": "₹363,266.42",
|
| 41 |
+
"total_vat": "₹101,714.60",
|
| 42 |
+
"total_gross_worth": "₹464,981.02",
|
| 43 |
+
"total_cgst": "₹0.00",
|
| 44 |
+
"total_sgst": "₹0.00",
|
| 45 |
+
"total_igst": "₹101,714.60"
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00110.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "XOC/635",
|
| 5 |
+
"invoice_date": "21/05/2025",
|
| 6 |
+
"seller": "FUTURE TECH 82, Ratti Nagar, Chittoor 762981",
|
| 7 |
+
"client": "VRITTI KADE 00/55, Keer Zila, Mehsana 507142",
|
| 8 |
+
"shipping_address": "00/55, Keer Zila, Mehsana 507142",
|
| 9 |
+
"seller_tax_id": "08ADQUT6842Y1ZG",
|
| 10 |
+
"client_tax_id": "01MZMPB6749Z1ZF",
|
| 11 |
+
"client_phone": "03568036282"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "LG Refrigerator LG-983C",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "15,347.48",
|
| 18 |
+
"item_net_worth": "30,694.96",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8418"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹30,694.96",
|
| 25 |
+
"total_vat": "₹5,525.09",
|
| 26 |
+
"total_gross_worth": "₹36,220.05",
|
| 27 |
+
"total_cgst": "₹0.00",
|
| 28 |
+
"total_sgst": "₹0.00",
|
| 29 |
+
"total_igst": "₹5,525.09"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00111.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "25/564",
|
| 5 |
+
"invoice_date": "01/03/2025",
|
| 6 |
+
"seller": "PRADHAN MOBILE SHOP 117, Raghavan Path, Allahabad-329996",
|
| 7 |
+
"client": "BALVEER BISWAS 79/27, Mukhopadhyay Chowk, Sultan Pur Majra 315368",
|
| 8 |
+
"shipping_address": "79/27, Mukhopadhyay Chowk, Sultan Pur Majra 315368",
|
| 9 |
+
"seller_tax_id": "20BJIFC9618J1Z2",
|
| 10 |
+
"client_tax_id": "17MHQRE0693M1ZP",
|
| 11 |
+
"client_phone": "+917640165602"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Whirlpool Refrigerator WHI-517P",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "17,382.88",
|
| 18 |
+
"item_net_worth": "17,382.88",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8418"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Whirlpool Washing Machine WHI-986E",
|
| 24 |
+
"item_qty": "2",
|
| 25 |
+
"item_net_price": "27,174.51",
|
| 26 |
+
"item_net_worth": "54,349.02",
|
| 27 |
+
"item_vat": "18%",
|
| 28 |
+
"item_hsn": "8450"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"summary": {
|
| 32 |
+
"total_net_worth": "₹71,731.90",
|
| 33 |
+
"total_vat": "₹12,911.74",
|
| 34 |
+
"total_gross_worth": "₹84,643.64",
|
| 35 |
+
"total_cgst": "₹6,455.87",
|
| 36 |
+
"total_sgst": "₹6,455.87",
|
| 37 |
+
"total_igst": "₹0.00"
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00112.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "VQW/956",
|
| 5 |
+
"invoice_date": "28/08/2025",
|
| 6 |
+
"seller": "PATEL MOBILES 563, Raja Street, Kirari Suleman Nagar 769599",
|
| 7 |
+
"client": "ADWETA IYER 99/03, Ratta Path, Kakinada-787080",
|
| 8 |
+
"shipping_address": "99/03, Ratta Path, Kakinada-787080",
|
| 9 |
+
"seller_tax_id": "07WNGFK2222K1ZP",
|
| 10 |
+
"client_tax_id": "31RKVXN9067D1ZR",
|
| 11 |
+
"client_phone": "01568436776"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Lenovo Laptops LEN-653W",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "31,489.59",
|
| 18 |
+
"item_net_worth": "62,979.18",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8471"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹62,979.18",
|
| 25 |
+
"total_vat": "₹11,336.25",
|
| 26 |
+
"total_gross_worth": "₹74,315.43",
|
| 27 |
+
"total_cgst": "₹0.00",
|
| 28 |
+
"total_sgst": "₹0.00",
|
| 29 |
+
"total_igst": "₹11,336.25"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00113.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "HDM/126",
|
| 5 |
+
"invoice_date": "06/09/2025",
|
| 6 |
+
"seller": "PRADHAN MOBILE SHOP H.No. 773, Narain Zila, Sultan Pur Majra 636938",
|
| 7 |
+
"client": "IRA PANT 62/82, Panchal Road, Bahraich-198917",
|
| 8 |
+
"shipping_address": "62/82, Panchal Road, Bahraich-198917",
|
| 9 |
+
"seller_tax_id": "16QGGPA6141N1Z3",
|
| 10 |
+
"client_tax_id": "32KRMLM5479M1Z8",
|
| 11 |
+
"client_phone": "9251026455"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "JBL Headphones JBL-937V",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "81,040.68",
|
| 18 |
+
"item_net_worth": "81,040.68",
|
| 19 |
+
"item_vat": "12%",
|
| 20 |
+
"item_hsn": "8518"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "JBL Speaker JBL-378H",
|
| 24 |
+
"item_qty": "2",
|
| 25 |
+
"item_net_price": "13,222.16",
|
| 26 |
+
"item_net_worth": "26,444.32",
|
| 27 |
+
"item_vat": "12%",
|
| 28 |
+
"item_hsn": "8518"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "Haier Refrigerator HAI-738Z",
|
| 32 |
+
"item_qty": "2",
|
| 33 |
+
"item_net_price": "28,586.84",
|
| 34 |
+
"item_net_worth": "57,173.68",
|
| 35 |
+
"item_vat": "12%",
|
| 36 |
+
"item_hsn": "8418"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"item_desc": "Whirlpool Microwave WHI-582X",
|
| 40 |
+
"item_qty": "1",
|
| 41 |
+
"item_net_price": "36,178.24",
|
| 42 |
+
"item_net_worth": "36,178.24",
|
| 43 |
+
"item_vat": "12%",
|
| 44 |
+
"item_hsn": "8516"
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"summary": {
|
| 48 |
+
"total_net_worth": "₹200,836.92",
|
| 49 |
+
"total_vat": "₹24,100.43",
|
| 50 |
+
"total_gross_worth": "₹224,937.35",
|
| 51 |
+
"total_cgst": "₹0.00",
|
| 52 |
+
"total_sgst": "₹0.00",
|
| 53 |
+
"total_igst": "₹24,100.43"
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00114.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "XUU/911",
|
| 5 |
+
"invoice_date": "21/04/2025",
|
| 6 |
+
"seller": "RAM ELECTRONICS 73, Singh Circle, Unnao-169998",
|
| 7 |
+
"client": "BISHAKHA PALAN 38/27, Sharma, Chandrapur 803194",
|
| 8 |
+
"shipping_address": "38/27, Sharma, Chandrapur 803194",
|
| 9 |
+
"seller_tax_id": "32IPFHB0623H1ZC",
|
| 10 |
+
"client_tax_id": "35UFZAX8004U1ZZ",
|
| 11 |
+
"client_phone": "1610717465"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "LG Air Conditioner LG-981P",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "56,233.03",
|
| 18 |
+
"item_net_worth": "112,466.06",
|
| 19 |
+
"item_vat": "28%",
|
| 20 |
+
"item_hsn": "8415"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Motorola Smartphones MOT-602F IMEI: 325554545927940",
|
| 24 |
+
"item_qty": "1",
|
| 25 |
+
"item_net_price": "22,637.62",
|
| 26 |
+
"item_net_worth": "22,637.62",
|
| 27 |
+
"item_vat": "28%",
|
| 28 |
+
"item_hsn": "8517"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "OnePlus Television ONE-860B",
|
| 32 |
+
"item_qty": "2",
|
| 33 |
+
"item_net_price": "58,336.16",
|
| 34 |
+
"item_net_worth": "116,672.32",
|
| 35 |
+
"item_vat": "28%",
|
| 36 |
+
"item_hsn": "8528"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"item_desc": "LG Television LG-251T",
|
| 40 |
+
"item_qty": "2",
|
| 41 |
+
"item_net_price": "48,575.92",
|
| 42 |
+
"item_net_worth": "97,151.84",
|
| 43 |
+
"item_vat": "28%",
|
| 44 |
+
"item_hsn": "8528"
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"summary": {
|
| 48 |
+
"total_net_worth": "₹348,927.84",
|
| 49 |
+
"total_vat": "₹97,699.80",
|
| 50 |
+
"total_gross_worth": "₹446,627.64",
|
| 51 |
+
"total_cgst": "₹48,849.90",
|
| 52 |
+
"total_sgst": "₹48,849.90",
|
| 53 |
+
"total_igst": "₹0.00"
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00115.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "INV-2024-4490",
|
| 5 |
+
"invoice_date": "27/03/2025",
|
| 6 |
+
"seller": "ELECTRONICS WORLD H.No. 35, Krish Nagar, Loni-905294",
|
| 7 |
+
"client": "JHALAK BEN 95/517, Kibe Path, Patna 289678",
|
| 8 |
+
"shipping_address": "95/517, Kibe Path, Patna 289678",
|
| 9 |
+
"seller_tax_id": "18TLOMD0277V1Z3",
|
| 10 |
+
"client_tax_id": "15IJCWR4774Q1ZU",
|
| 11 |
+
"client_phone": "00645169870"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Sony Camera SON-859Z",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "64,078.80",
|
| 18 |
+
"item_net_worth": "64,078.80",
|
| 19 |
+
"item_vat": "12%",
|
| 20 |
+
"item_hsn": "8525"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹64,078.80",
|
| 25 |
+
"total_vat": "₹7,689.46",
|
| 26 |
+
"total_gross_worth": "₹71,768.26",
|
| 27 |
+
"total_cgst": "₹3,844.73",
|
| 28 |
+
"total_sgst": "₹3,844.73",
|
| 29 |
+
"total_igst": "₹0.00"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00116.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "24/627",
|
| 5 |
+
"invoice_date": "14/02/2025",
|
| 6 |
+
"seller": "RAM ELECTRONICS 789, Prashad Marg, Kharagpur 012697",
|
| 7 |
+
"client": "LABAN RATTA 86/891, Chakraborty Street, Rajahmundry 193424",
|
| 8 |
+
"shipping_address": "86/891, Chakraborty Street, Rajahmundry 193424",
|
| 9 |
+
"seller_tax_id": "18CTVLV9556Z1Z5",
|
| 10 |
+
"client_tax_id": "22PFNYL6627U1Z3",
|
| 11 |
+
"client_phone": "05739345152"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Sennheiser Headphones SEN-124K",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "63,112.98",
|
| 18 |
+
"item_net_worth": "126,225.96",
|
| 19 |
+
"item_vat": "28%",
|
| 20 |
+
"item_hsn": "8518"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Realme Smartphones REA-101W IMEI: 033992540322637",
|
| 24 |
+
"item_qty": "1",
|
| 25 |
+
"item_net_price": "51,995.49",
|
| 26 |
+
"item_net_worth": "51,995.49",
|
| 27 |
+
"item_vat": "28%",
|
| 28 |
+
"item_hsn": "8517"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "Dell Laptops DEL-962N",
|
| 32 |
+
"item_qty": "2",
|
| 33 |
+
"item_net_price": "60,927.42",
|
| 34 |
+
"item_net_worth": "121,854.84",
|
| 35 |
+
"item_vat": "28%",
|
| 36 |
+
"item_hsn": "8471"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"item_desc": "Samsung Tablets SAM-108I",
|
| 40 |
+
"item_qty": "2",
|
| 41 |
+
"item_net_price": "87,279.97",
|
| 42 |
+
"item_net_worth": "174,559.94",
|
| 43 |
+
"item_vat": "28%",
|
| 44 |
+
"item_hsn": "8471"
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"summary": {
|
| 48 |
+
"total_net_worth": "₹474,636.23",
|
| 49 |
+
"total_vat": "₹132,898.14",
|
| 50 |
+
"total_gross_worth": "₹607,534.37",
|
| 51 |
+
"total_cgst": "₹66,449.07",
|
| 52 |
+
"total_sgst": "₹66,449.07",
|
| 53 |
+
"total_igst": "₹0.00"
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00117.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "INV-2023-1180",
|
| 5 |
+
"invoice_date": "28/10/2025",
|
| 6 |
+
"seller": "FUTURE TECH 01, Basak Circle, Khammam 993575",
|
| 7 |
+
"client": "VASATIKA MITTER 33, Manne Zila, Dhanbad-365039",
|
| 8 |
+
"shipping_address": "33, Manne Zila, Dhanbad-365039",
|
| 9 |
+
"seller_tax_id": "03JJBIK3171Z1ZV",
|
| 10 |
+
"client_tax_id": "14NPFGB1758F1ZU",
|
| 11 |
+
"client_phone": "6235362527"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Bajaj Bike BAJ-532W",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "51,235.34",
|
| 18 |
+
"item_net_worth": "51,235.34",
|
| 19 |
+
"item_vat": "12%",
|
| 20 |
+
"item_hsn": "8711"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Xiaomi Tablets XIA-267T",
|
| 24 |
+
"item_qty": "1",
|
| 25 |
+
"item_net_price": "92,741.77",
|
| 26 |
+
"item_net_worth": "92,741.77",
|
| 27 |
+
"item_vat": "12%",
|
| 28 |
+
"item_hsn": "8471"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"summary": {
|
| 32 |
+
"total_net_worth": "₹143,977.11",
|
| 33 |
+
"total_vat": "₹17,277.25",
|
| 34 |
+
"total_gross_worth": "₹161,254.36",
|
| 35 |
+
"total_cgst": "₹0.00",
|
| 36 |
+
"total_sgst": "₹0.00",
|
| 37 |
+
"total_igst": "₹17,277.25"
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00118.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "WQN/195",
|
| 5 |
+
"invoice_date": "13/02/2025",
|
| 6 |
+
"seller": "FUTURE TECH 365, Boase Circle, Faridabad 657785",
|
| 7 |
+
"client": "ISHANVI TRIPATHI 76/074, Bandi Circle, Pali-313847",
|
| 8 |
+
"shipping_address": "69/35, Sridhar Ganj, Amaravati-094038",
|
| 9 |
+
"seller_tax_id": "09AYQAR6200B1Z2",
|
| 10 |
+
"client_tax_id": "19LGWPF8034P1ZS",
|
| 11 |
+
"client_phone": "02385293027"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Samsung Smartphones SAM-412H IMEI: 577912016128191",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "74,077.58",
|
| 18 |
+
"item_net_worth": "74,077.58",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8517"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "JBL Speaker JBL-562H",
|
| 24 |
+
"item_qty": "2",
|
| 25 |
+
"item_net_price": "14,511.26",
|
| 26 |
+
"item_net_worth": "29,022.52",
|
| 27 |
+
"item_vat": "18%",
|
| 28 |
+
"item_hsn": "8518"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "Samsung Television SAM-974A",
|
| 32 |
+
"item_qty": "2",
|
| 33 |
+
"item_net_price": "64,368.46",
|
| 34 |
+
"item_net_worth": "128,736.92",
|
| 35 |
+
"item_vat": "18%",
|
| 36 |
+
"item_hsn": "8528"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"item_desc": "Hero Bike HER-941F",
|
| 40 |
+
"item_qty": "2",
|
| 41 |
+
"item_net_price": "55,479.15",
|
| 42 |
+
"item_net_worth": "110,958.30",
|
| 43 |
+
"item_vat": "18%",
|
| 44 |
+
"item_hsn": "8711"
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"summary": {
|
| 48 |
+
"total_net_worth": "₹342,795.32",
|
| 49 |
+
"total_vat": "₹61,703.16",
|
| 50 |
+
"total_gross_worth": "₹404,498.48",
|
| 51 |
+
"total_cgst": "₹30,851.58",
|
| 52 |
+
"total_sgst": "₹30,851.58",
|
| 53 |
+
"total_igst": "₹0.00"
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00119.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "INV-2023-2269",
|
| 5 |
+
"invoice_date": "23/09/2025",
|
| 6 |
+
"seller": "STAR ELECTRONICS H.No. 25, Reddy, New Delhi-334644",
|
| 7 |
+
"client": "WILLIAM PAREKH H.No. 69, Nigam, Panchkula 205668",
|
| 8 |
+
"shipping_address": "H.No. 69, Nigam, Panchkula 205668",
|
| 9 |
+
"seller_tax_id": "26MXTSM8255U1Z3",
|
| 10 |
+
"client_tax_id": "23XKUDS6304Y1ZV",
|
| 11 |
+
"client_phone": "+912805575957"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Apple Tablets APP-513G",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "49,447.84",
|
| 18 |
+
"item_net_worth": "98,895.68",
|
| 19 |
+
"item_vat": "28%",
|
| 20 |
+
"item_hsn": "8471"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹98,895.68",
|
| 25 |
+
"total_vat": "₹27,690.79",
|
| 26 |
+
"total_gross_worth": "₹126,586.47",
|
| 27 |
+
"total_cgst": "₹0.00",
|
| 28 |
+
"total_sgst": "₹0.00",
|
| 29 |
+
"total_igst": "₹27,690.79"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00120.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "24/958",
|
| 5 |
+
"invoice_date": "02/10/2025",
|
| 6 |
+
"seller": "SMART ELECTRONICS H.No. 26, Sampath Circle, Bikaner-806898",
|
| 7 |
+
"client": "MAANAV ACHARYA H.No. 699, Agrawal Street, Phagwara-375459",
|
| 8 |
+
"shipping_address": "64, Sangha Zila, Nashik 949406",
|
| 9 |
+
"seller_tax_id": "32YBWJK7438A1ZX",
|
| 10 |
+
"client_tax_id": "20UNHXE8411O1Z8",
|
| 11 |
+
"client_phone": "1969776346"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "OnePlus Smartphones ONE-659U IMEI: 586887525288261",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "15,914.81",
|
| 18 |
+
"item_net_worth": "31,829.62",
|
| 19 |
+
"item_vat": "12%",
|
| 20 |
+
"item_hsn": "8517"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Oppo Smartphones OPP-925Z IMEI: 729627307129886",
|
| 24 |
+
"item_qty": "2",
|
| 25 |
+
"item_net_price": "56,522.32",
|
| 26 |
+
"item_net_worth": "113,044.64",
|
| 27 |
+
"item_vat": "12%",
|
| 28 |
+
"item_hsn": "8517"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "Bose Speaker BOS-932L",
|
| 32 |
+
"item_qty": "2",
|
| 33 |
+
"item_net_price": "49,382.89",
|
| 34 |
+
"item_net_worth": "98,765.78",
|
| 35 |
+
"item_vat": "12%",
|
| 36 |
+
"item_hsn": "8518"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"item_desc": "Bosch Washing Machine BOS-761M",
|
| 40 |
+
"item_qty": "1",
|
| 41 |
+
"item_net_price": "12,269.69",
|
| 42 |
+
"item_net_worth": "12,269.69",
|
| 43 |
+
"item_vat": "12%",
|
| 44 |
+
"item_hsn": "8450"
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"summary": {
|
| 48 |
+
"total_net_worth": "₹255,909.73",
|
| 49 |
+
"total_vat": "₹30,709.17",
|
| 50 |
+
"total_gross_worth": "₹286,618.90",
|
| 51 |
+
"total_cgst": "₹15,354.58",
|
| 52 |
+
"total_sgst": "₹15,354.58",
|
| 53 |
+
"total_igst": "₹0.00"
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00121.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "25/666",
|
| 5 |
+
"invoice_date": "11/04/2025",
|
| 6 |
+
"seller": "KUMAR TECH SOLUTIONS 17, Sharma Chowk, Surat-374455",
|
| 7 |
+
"client": "AYUSH KEER H.No. 13, Tailor Street, Kanpur 942697",
|
| 8 |
+
"shipping_address": "H.No. 55, Loyal Nagar, Bhilai 189360",
|
| 9 |
+
"seller_tax_id": "26YOGUB9569I1Z3",
|
| 10 |
+
"client_tax_id": "31AXEAL6236O1ZA",
|
| 11 |
+
"client_phone": "05474453691"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Samsung Tablets SAM-451W",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "21,213.75",
|
| 18 |
+
"item_net_worth": "42,427.50",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8471"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹42,427.50",
|
| 25 |
+
"total_vat": "₹7,636.95",
|
| 26 |
+
"total_gross_worth": "₹50,064.45",
|
| 27 |
+
"total_cgst": "₹3,818.47",
|
| 28 |
+
"total_sgst": "₹3,818.47",
|
| 29 |
+
"total_igst": "₹0.00"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00122.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "INV-2023-6622",
|
| 5 |
+
"invoice_date": "07/08/2025",
|
| 6 |
+
"seller": "TECH BAZAAR H.No. 35, Kibe Path, Kolkata-301427",
|
| 7 |
+
"client": "KEYA NORI 160, Bahri, Nagercoil 990900",
|
| 8 |
+
"shipping_address": "160, Bahri, Nagercoil 990900",
|
| 9 |
+
"seller_tax_id": "07XTNTV0197X1ZA",
|
| 10 |
+
"client_tax_id": "15DZHSY8588G1ZU",
|
| 11 |
+
"client_phone": "+913443796346"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Apple Smartwatch APP-594S",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "83,855.37",
|
| 18 |
+
"item_net_worth": "167,710.74",
|
| 19 |
+
"item_vat": "12%",
|
| 20 |
+
"item_hsn": "8517"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Apple Smartwatch APP-372W",
|
| 24 |
+
"item_qty": "1",
|
| 25 |
+
"item_net_price": "15,425.17",
|
| 26 |
+
"item_net_worth": "15,425.17",
|
| 27 |
+
"item_vat": "12%",
|
| 28 |
+
"item_hsn": "8517"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "Hero Bike HER-494T",
|
| 32 |
+
"item_qty": "1",
|
| 33 |
+
"item_net_price": "88,595.21",
|
| 34 |
+
"item_net_worth": "88,595.21",
|
| 35 |
+
"item_vat": "12%",
|
| 36 |
+
"item_hsn": "8711"
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"summary": {
|
| 40 |
+
"total_net_worth": "₹271,731.12",
|
| 41 |
+
"total_vat": "₹32,607.73",
|
| 42 |
+
"total_gross_worth": "₹304,338.85",
|
| 43 |
+
"total_cgst": "₹16,303.87",
|
| 44 |
+
"total_sgst": "₹16,303.87",
|
| 45 |
+
"total_igst": "₹0.00"
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00123.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "INV-2023-1537",
|
| 5 |
+
"invoice_date": "18/06/2025",
|
| 6 |
+
"seller": "SMART ELECTRONICS H.No. 66, Keer Circle, Shahjahanpur 434288",
|
| 7 |
+
"client": "SUDIKSHA KUMAR 10/973, Balan Street, Tinsukia-096943",
|
| 8 |
+
"shipping_address": "10/973, Balan Street, Tinsukia-096943",
|
| 9 |
+
"seller_tax_id": "34WSCCK4212N1Z7",
|
| 10 |
+
"client_tax_id": "19DMKAW4997U1Z3",
|
| 11 |
+
"client_phone": "08537261970"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Samsung Microwave SAM-222K",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "71,732.57",
|
| 18 |
+
"item_net_worth": "71,732.57",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8516"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Apple Tablets APP-867K",
|
| 24 |
+
"item_qty": "1",
|
| 25 |
+
"item_net_price": "93,096.30",
|
| 26 |
+
"item_net_worth": "93,096.30",
|
| 27 |
+
"item_vat": "18%",
|
| 28 |
+
"item_hsn": "8471"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "Mi Television MI-382X",
|
| 32 |
+
"item_qty": "1",
|
| 33 |
+
"item_net_price": "73,275.35",
|
| 34 |
+
"item_net_worth": "73,275.35",
|
| 35 |
+
"item_vat": "18%",
|
| 36 |
+
"item_hsn": "8528"
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"summary": {
|
| 40 |
+
"total_net_worth": "₹238,104.22",
|
| 41 |
+
"total_vat": "₹42,858.76",
|
| 42 |
+
"total_gross_worth": "₹280,962.98",
|
| 43 |
+
"total_cgst": "₹21,429.38",
|
| 44 |
+
"total_sgst": "₹21,429.38",
|
| 45 |
+
"total_igst": "₹0.00"
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00124.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "INV-2024-1367",
|
| 5 |
+
"invoice_date": "13/09/2025",
|
| 6 |
+
"seller": "DIGITAL STORE 80, Amble Chowk, Firozabad-813833",
|
| 7 |
+
"client": "WAIDA RAJ 20, Sem Marg, Panchkula 273475",
|
| 8 |
+
"shipping_address": "20, Sem Marg, Panchkula 273475",
|
| 9 |
+
"seller_tax_id": "33ATZSH8305Z1ZY",
|
| 10 |
+
"client_tax_id": "31AYERX8339T1ZS",
|
| 11 |
+
"client_phone": "6721751676"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Sony Television SON-145X",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "37,071.39",
|
| 18 |
+
"item_net_worth": "37,071.39",
|
| 19 |
+
"item_vat": "12%",
|
| 20 |
+
"item_hsn": "8528"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹37,071.39",
|
| 25 |
+
"total_vat": "₹4,448.57",
|
| 26 |
+
"total_gross_worth": "₹41,519.96",
|
| 27 |
+
"total_cgst": "₹2,224.28",
|
| 28 |
+
"total_sgst": "₹2,224.28",
|
| 29 |
+
"total_igst": "₹0.00"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00125.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "IKI/259",
|
| 5 |
+
"invoice_date": "19/10/2025",
|
| 6 |
+
"seller": "SINGH ELECTRONICS 98/106, Balasubramanian Chowk, Barasat 497231",
|
| 7 |
+
"client": "CHAKRADEV SODHI H.No. 296, Bansal Nagar, Mango-721110",
|
| 8 |
+
"shipping_address": "747, Palla Ganj, Moradabad-553778",
|
| 9 |
+
"seller_tax_id": "21IXMAP6372E1Z0",
|
| 10 |
+
"client_tax_id": "23FCYBV9294M1ZT",
|
| 11 |
+
"client_phone": "5437178473"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Samsung Smartphones SAM-425U IMEI: 658417988934991",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "60,880.52",
|
| 18 |
+
"item_net_worth": "121,761.04",
|
| 19 |
+
"item_vat": "28%",
|
| 20 |
+
"item_hsn": "8517"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Sony Camera SON-574V",
|
| 24 |
+
"item_qty": "1",
|
| 25 |
+
"item_net_price": "74,278.02",
|
| 26 |
+
"item_net_worth": "74,278.02",
|
| 27 |
+
"item_vat": "28%",
|
| 28 |
+
"item_hsn": "8525"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"summary": {
|
| 32 |
+
"total_net_worth": "₹196,039.06",
|
| 33 |
+
"total_vat": "₹54,890.94",
|
| 34 |
+
"total_gross_worth": "₹250,930.00",
|
| 35 |
+
"total_cgst": "₹27,445.47",
|
| 36 |
+
"total_sgst": "₹27,445.47",
|
| 37 |
+
"total_igst": "₹0.00"
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00126.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "MDB/293",
|
| 5 |
+
"invoice_date": "21/09/2025",
|
| 6 |
+
"seller": "RAM ELECTRONICS 06/670, Balasubramanian Road, Dehradun 853336",
|
| 7 |
+
"client": "HEMA ARYA H.No. 37, Deshpande Marg, Bihar Sharif-401566",
|
| 8 |
+
"shipping_address": "H.No. 37, Deshpande Marg, Bihar Sharif-401566",
|
| 9 |
+
"seller_tax_id": "05NCEOA1268I1ZW",
|
| 10 |
+
"client_tax_id": "17GUAOD6603E1ZP",
|
| 11 |
+
"client_phone": "+917446726921"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Fujifilm Camera FUJ-536V",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "42,435.97",
|
| 18 |
+
"item_net_worth": "84,871.94",
|
| 19 |
+
"item_vat": "28%",
|
| 20 |
+
"item_hsn": "8525"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹84,871.94",
|
| 25 |
+
"total_vat": "₹23,764.14",
|
| 26 |
+
"total_gross_worth": "₹108,636.08",
|
| 27 |
+
"total_cgst": "₹0.00",
|
| 28 |
+
"total_sgst": "₹0.00",
|
| 29 |
+
"total_igst": "₹23,764.14"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00127.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "OIZ/155",
|
| 5 |
+
"invoice_date": "17/10/2025",
|
| 6 |
+
"seller": "GADGET GALAXY 41, Thakkar, Medininagar-620526",
|
| 7 |
+
"client": "HARSH DOSHI H.No. 191, Rattan Street, Arrah 569248",
|
| 8 |
+
"shipping_address": "H.No. 191, Rattan Street, Arrah 569248",
|
| 9 |
+
"seller_tax_id": "32CMLBZ3364D1Z6",
|
| 10 |
+
"client_tax_id": "18NGKDL4634H1ZR",
|
| 11 |
+
"client_phone": "6353402139"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Canon Camera CAN-971B",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "37,594.36",
|
| 18 |
+
"item_net_worth": "37,594.36",
|
| 19 |
+
"item_vat": "28%",
|
| 20 |
+
"item_hsn": "8525"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Godrej Refrigerator GOD-712D",
|
| 24 |
+
"item_qty": "1",
|
| 25 |
+
"item_net_price": "90,702.12",
|
| 26 |
+
"item_net_worth": "90,702.12",
|
| 27 |
+
"item_vat": "28%",
|
| 28 |
+
"item_hsn": "8418"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "Whirlpool Washing Machine WHI-244C",
|
| 32 |
+
"item_qty": "1",
|
| 33 |
+
"item_net_price": "30,632.61",
|
| 34 |
+
"item_net_worth": "30,632.61",
|
| 35 |
+
"item_vat": "28%",
|
| 36 |
+
"item_hsn": "8450"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"item_desc": "Samsung Microwave SAM-389G",
|
| 40 |
+
"item_qty": "1",
|
| 41 |
+
"item_net_price": "91,822.72",
|
| 42 |
+
"item_net_worth": "91,822.72",
|
| 43 |
+
"item_vat": "28%",
|
| 44 |
+
"item_hsn": "8516"
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"summary": {
|
| 48 |
+
"total_net_worth": "₹250,751.81",
|
| 49 |
+
"total_vat": "₹70,210.51",
|
| 50 |
+
"total_gross_worth": "₹320,962.32",
|
| 51 |
+
"total_cgst": "₹35,105.25",
|
| 52 |
+
"total_sgst": "₹35,105.25",
|
| 53 |
+
"total_igst": "₹0.00"
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00128.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "INV-2023-8556",
|
| 5 |
+
"invoice_date": "05/03/2025",
|
| 6 |
+
"seller": "RAM ELECTRONICS H.No. 658, Wagle Circle, Bhopal 524765",
|
| 7 |
+
"client": "LIAM RANGANATHAN 15/245, Zacharia Road, Guntakal-025070",
|
| 8 |
+
"shipping_address": "15/245, Zacharia Road, Guntakal-025070",
|
| 9 |
+
"seller_tax_id": "03IGZLJ0943N1ZU",
|
| 10 |
+
"client_tax_id": "07DKOVJ5404G1ZM",
|
| 11 |
+
"client_phone": "04454940885"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "LG Microwave LG-572P",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "30,171.09",
|
| 18 |
+
"item_net_worth": "60,342.18",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8516"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Samsung Microwave SAM-259K",
|
| 24 |
+
"item_qty": "2",
|
| 25 |
+
"item_net_price": "44,479.35",
|
| 26 |
+
"item_net_worth": "88,958.70",
|
| 27 |
+
"item_vat": "18%",
|
| 28 |
+
"item_hsn": "8516"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "Apple Smartphones APP-373M IMEI: 250391310307359",
|
| 32 |
+
"item_qty": "2",
|
| 33 |
+
"item_net_price": "47,879.82",
|
| 34 |
+
"item_net_worth": "95,759.64",
|
| 35 |
+
"item_vat": "18%",
|
| 36 |
+
"item_hsn": "8517"
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"summary": {
|
| 40 |
+
"total_net_worth": "₹245,060.52",
|
| 41 |
+
"total_vat": "₹44,110.89",
|
| 42 |
+
"total_gross_worth": "₹289,171.41",
|
| 43 |
+
"total_cgst": "₹22,055.45",
|
| 44 |
+
"total_sgst": "₹22,055.45",
|
| 45 |
+
"total_igst": "₹0.00"
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00129.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "INV-2023-4715",
|
| 5 |
+
"invoice_date": "22/06/2025",
|
| 6 |
+
"seller": "ROYAL MOBILES 032, Dasgupta Path, Bellary 233434",
|
| 7 |
+
"client": "MEGHANA DEEP H.No. 596, Tiwari Path, Bardhaman-244662",
|
| 8 |
+
"shipping_address": "34/37, Dugar Marg, Morbi-319941",
|
| 9 |
+
"seller_tax_id": "13MXJNG7656O1ZA",
|
| 10 |
+
"client_tax_id": "05ESBHX7991B1ZQ",
|
| 11 |
+
"client_phone": "05599789523"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Voltas Air Conditioner VOL-799K",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "80,307.62",
|
| 18 |
+
"item_net_worth": "80,307.62",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8415"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹80,307.62",
|
| 25 |
+
"total_vat": "₹14,455.37",
|
| 26 |
+
"total_gross_worth": "₹94,762.99",
|
| 27 |
+
"total_cgst": "₹0.00",
|
| 28 |
+
"total_sgst": "₹0.00",
|
| 29 |
+
"total_igst": "₹14,455.37"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00130.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "PPB/111",
|
| 5 |
+
"invoice_date": "23/04/2025",
|
| 6 |
+
"seller": "ROYAL MOBILES 311, Mutti Zila, Ambattur 729025",
|
| 7 |
+
"client": "WAIDA SARAN 269, Karnik Circle, Panvel 614977",
|
| 8 |
+
"shipping_address": "269, Karnik Circle, Panvel 614977",
|
| 9 |
+
"seller_tax_id": "31MKQCO4338E1Z9",
|
| 10 |
+
"client_tax_id": "15BRWFJ4091Q1Z5",
|
| 11 |
+
"client_phone": "06909194581"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Godrej Refrigerator GOD-339K",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "62,262.99",
|
| 18 |
+
"item_net_worth": "124,525.98",
|
| 19 |
+
"item_vat": "28%",
|
| 20 |
+
"item_hsn": "8418"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Samsung Refrigerator SAM-147E",
|
| 24 |
+
"item_qty": "2",
|
| 25 |
+
"item_net_price": "20,059.16",
|
| 26 |
+
"item_net_worth": "40,118.32",
|
| 27 |
+
"item_vat": "28%",
|
| 28 |
+
"item_hsn": "8418"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "IFB Washing Machine IFB-260E",
|
| 32 |
+
"item_qty": "2",
|
| 33 |
+
"item_net_price": "42,813.35",
|
| 34 |
+
"item_net_worth": "85,626.70",
|
| 35 |
+
"item_vat": "28%",
|
| 36 |
+
"item_hsn": "8450"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"item_desc": "Noise Smartwatch NOI-471S",
|
| 40 |
+
"item_qty": "2",
|
| 41 |
+
"item_net_price": "72,532.30",
|
| 42 |
+
"item_net_worth": "145,064.60",
|
| 43 |
+
"item_vat": "28%",
|
| 44 |
+
"item_hsn": "8517"
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"summary": {
|
| 48 |
+
"total_net_worth": "₹395,335.60",
|
| 49 |
+
"total_vat": "₹110,693.97",
|
| 50 |
+
"total_gross_worth": "₹506,029.57",
|
| 51 |
+
"total_cgst": "₹0.00",
|
| 52 |
+
"total_sgst": "₹0.00",
|
| 53 |
+
"total_igst": "₹110,693.97"
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00131.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "24/919",
|
| 5 |
+
"invoice_date": "22/04/2025",
|
| 6 |
+
"seller": "GADGET GALAXY H.No. 356, Prabhu Circle, Ozhukarai 098178",
|
| 7 |
+
"client": "NAKUL SETHI H.No. 200, Singh Zila, Gudivada-047564",
|
| 8 |
+
"shipping_address": "H.No. 200, Singh Zila, Gudivada-047564",
|
| 9 |
+
"seller_tax_id": "06TSOLN2393C1ZW",
|
| 10 |
+
"client_tax_id": "12NLKKT9190A1Z4",
|
| 11 |
+
"client_phone": "+912959524136"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Daikin Air Conditioner DAI-213I",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "19,046.25",
|
| 18 |
+
"item_net_worth": "19,046.25",
|
| 19 |
+
"item_vat": "28%",
|
| 20 |
+
"item_hsn": "8415"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹19,046.25",
|
| 25 |
+
"total_vat": "₹5,332.95",
|
| 26 |
+
"total_gross_worth": "₹24,379.20",
|
| 27 |
+
"total_cgst": "₹0.00",
|
| 28 |
+
"total_sgst": "₹0.00",
|
| 29 |
+
"total_igst": "₹5,332.95"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00132.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "OXD/164",
|
| 5 |
+
"invoice_date": "24/06/2025",
|
| 6 |
+
"seller": "GADGET GALAXY H.No. 29, Sibal Zila, Hosur-448678",
|
| 7 |
+
"client": "OESHI VERMA 21, Nanda Ganj, Katihar 296989",
|
| 8 |
+
"shipping_address": "21, Nanda Ganj, Katihar 296989",
|
| 9 |
+
"seller_tax_id": "25JABCN9059I1ZC",
|
| 10 |
+
"client_tax_id": "30ZROGB6822C1ZT",
|
| 11 |
+
"client_phone": "+918212337899"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "LG Washing Machine LG-753G",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "53,605.68",
|
| 18 |
+
"item_net_worth": "107,211.36",
|
| 19 |
+
"item_vat": "12%",
|
| 20 |
+
"item_hsn": "8450"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹107,211.36",
|
| 25 |
+
"total_vat": "₹12,865.36",
|
| 26 |
+
"total_gross_worth": "₹120,076.72",
|
| 27 |
+
"total_cgst": "₹6,432.68",
|
| 28 |
+
"total_sgst": "₹6,432.68",
|
| 29 |
+
"total_igst": "₹0.00"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00133.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "DDR/340",
|
| 5 |
+
"invoice_date": "22/08/2025",
|
| 6 |
+
"seller": "GADGET GALAXY 42/703, Kunda Circle, Gopalpur 245669",
|
| 7 |
+
"client": "KIAAN ARYA H.No. 77, Chakrabarti Street, Darbhanga 643477",
|
| 8 |
+
"shipping_address": "H.No. 211, Ranganathan Circle, Ongole-190918",
|
| 9 |
+
"seller_tax_id": "18WPTKC3823G1ZW",
|
| 10 |
+
"client_tax_id": "34MMVPH8936D1ZS",
|
| 11 |
+
"client_phone": "4001888124"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Canon Camera CAN-386P",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "59,892.44",
|
| 18 |
+
"item_net_worth": "119,784.88",
|
| 19 |
+
"item_vat": "28%",
|
| 20 |
+
"item_hsn": "8525"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Bose Speaker BOS-339K",
|
| 24 |
+
"item_qty": "2",
|
| 25 |
+
"item_net_price": "86,320.79",
|
| 26 |
+
"item_net_worth": "172,641.58",
|
| 27 |
+
"item_vat": "28%",
|
| 28 |
+
"item_hsn": "8518"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"summary": {
|
| 32 |
+
"total_net_worth": "₹292,426.46",
|
| 33 |
+
"total_vat": "₹81,879.41",
|
| 34 |
+
"total_gross_worth": "₹374,305.87",
|
| 35 |
+
"total_cgst": "₹40,939.70",
|
| 36 |
+
"total_sgst": "₹40,939.70",
|
| 37 |
+
"total_igst": "₹0.00"
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00134.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "INV-2023-1025",
|
| 5 |
+
"invoice_date": "03/02/2025",
|
| 6 |
+
"seller": "VISHWA ELECTRONICS 29, Sehgal Chowk, Vellore 562843",
|
| 7 |
+
"client": "QUINCY BASAK H.No. 122, Prabhu Ganj, Bhalswa Jahangir Pur 504556",
|
| 8 |
+
"shipping_address": "46/11, Kale Nagar, Shahjahanpur-252689",
|
| 9 |
+
"seller_tax_id": "14BVRMR9136K1ZD",
|
| 10 |
+
"client_tax_id": "15IEUQZ8706G1ZU",
|
| 11 |
+
"client_phone": "+913656180731"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Whirlpool Refrigerator WHI-692L",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "71,044.35",
|
| 18 |
+
"item_net_worth": "71,044.35",
|
| 19 |
+
"item_vat": "12%",
|
| 20 |
+
"item_hsn": "8418"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Whirlpool Microwave WHI-546H",
|
| 24 |
+
"item_qty": "1",
|
| 25 |
+
"item_net_price": "22,426.34",
|
| 26 |
+
"item_net_worth": "22,426.34",
|
| 27 |
+
"item_vat": "12%",
|
| 28 |
+
"item_hsn": "8516"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"summary": {
|
| 32 |
+
"total_net_worth": "₹93,470.69",
|
| 33 |
+
"total_vat": "₹11,216.48",
|
| 34 |
+
"total_gross_worth": "₹104,687.17",
|
| 35 |
+
"total_cgst": "₹5,608.24",
|
| 36 |
+
"total_sgst": "₹5,608.24",
|
| 37 |
+
"total_igst": "₹0.00"
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00135.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "INV-2024-9870",
|
| 5 |
+
"invoice_date": "01/09/2025",
|
| 6 |
+
"seller": "GADGET GALAXY H.No. 278, Kalla Nagar, Pune-311142",
|
| 7 |
+
"client": "DEV PRADHAN 16, Warrior Street, Siwan-811361",
|
| 8 |
+
"shipping_address": "H.No. 08, Dixit Chowk, Rajpur Sonarpur 883642",
|
| 9 |
+
"seller_tax_id": "13OESXA5795Q1ZK",
|
| 10 |
+
"client_tax_id": "30OWMHX7900V1ZL",
|
| 11 |
+
"client_phone": "4773732713"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "JBL Speaker JBL-951X",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "70,395.69",
|
| 18 |
+
"item_net_worth": "140,791.38",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8518"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Samsung Refrigerator SAM-182D",
|
| 24 |
+
"item_qty": "1",
|
| 25 |
+
"item_net_price": "17,909.78",
|
| 26 |
+
"item_net_worth": "17,909.78",
|
| 27 |
+
"item_vat": "18%",
|
| 28 |
+
"item_hsn": "8418"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "LG Washing Machine LG-187H",
|
| 32 |
+
"item_qty": "1",
|
| 33 |
+
"item_net_price": "56,157.07",
|
| 34 |
+
"item_net_worth": "56,157.07",
|
| 35 |
+
"item_vat": "18%",
|
| 36 |
+
"item_hsn": "8450"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"item_desc": "Godrej Refrigerator GOD-931F",
|
| 40 |
+
"item_qty": "1",
|
| 41 |
+
"item_net_price": "30,386.58",
|
| 42 |
+
"item_net_worth": "30,386.58",
|
| 43 |
+
"item_vat": "18%",
|
| 44 |
+
"item_hsn": "8418"
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"summary": {
|
| 48 |
+
"total_net_worth": "₹245,244.81",
|
| 49 |
+
"total_vat": "₹44,144.07",
|
| 50 |
+
"total_gross_worth": "₹289,388.88",
|
| 51 |
+
"total_cgst": "₹22,072.03",
|
| 52 |
+
"total_sgst": "₹22,072.03",
|
| 53 |
+
"total_igst": "₹0.00"
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00136.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "UWN/240",
|
| 5 |
+
"invoice_date": "28/05/2025",
|
| 6 |
+
"seller": "PATEL MOBILES 946, Gulati Nagar, Ulhasnagar-959987",
|
| 7 |
+
"client": "PANINI KADAKIA 43/590, Lata Ganj, Tirunelveli-525490",
|
| 8 |
+
"shipping_address": "43/590, Lata Ganj, Tirunelveli-525490",
|
| 9 |
+
"seller_tax_id": "32EYNHQ6092D1Z1",
|
| 10 |
+
"client_tax_id": "26DCSPE9721T1ZZ",
|
| 11 |
+
"client_phone": "4239847766"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "LG Washing Machine LG-576I",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "79,711.34",
|
| 18 |
+
"item_net_worth": "79,711.34",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8450"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹79,711.34",
|
| 25 |
+
"total_vat": "₹14,348.04",
|
| 26 |
+
"total_gross_worth": "₹94,059.38",
|
| 27 |
+
"total_cgst": "₹0.00",
|
| 28 |
+
"total_sgst": "₹0.00",
|
| 29 |
+
"total_igst": "₹14,348.04"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00137.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "INV-2024-6321",
|
| 5 |
+
"invoice_date": "13/06/2025",
|
| 6 |
+
"seller": "CITY ELECTRONICS 16/818, Raghavan Chowk, South Dumdum-881687",
|
| 7 |
+
"client": "QUINCY GOEL 909, Nagy Chowk, Bhatpara-600704",
|
| 8 |
+
"shipping_address": "909, Nagy Chowk, Bhatpara-600704",
|
| 9 |
+
"seller_tax_id": "20IJYFX3795E1Z8",
|
| 10 |
+
"client_tax_id": "16HNTBI3613L1ZE",
|
| 11 |
+
"client_phone": "2962299465"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "TCL Television TCL-549T",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "32,370.78",
|
| 18 |
+
"item_net_worth": "32,370.78",
|
| 19 |
+
"item_vat": "12%",
|
| 20 |
+
"item_hsn": "8528"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Samsung Tablets SAM-443F",
|
| 24 |
+
"item_qty": "1",
|
| 25 |
+
"item_net_price": "12,472.01",
|
| 26 |
+
"item_net_worth": "12,472.01",
|
| 27 |
+
"item_vat": "12%",
|
| 28 |
+
"item_hsn": "8471"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "LG Refrigerator LG-950V",
|
| 32 |
+
"item_qty": "2",
|
| 33 |
+
"item_net_price": "60,855.35",
|
| 34 |
+
"item_net_worth": "121,710.70",
|
| 35 |
+
"item_vat": "12%",
|
| 36 |
+
"item_hsn": "8418"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"item_desc": "Sony Camera SON-162D",
|
| 40 |
+
"item_qty": "2",
|
| 41 |
+
"item_net_price": "50,584.96",
|
| 42 |
+
"item_net_worth": "101,169.92",
|
| 43 |
+
"item_vat": "12%",
|
| 44 |
+
"item_hsn": "8525"
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"summary": {
|
| 48 |
+
"total_net_worth": "₹267,723.41",
|
| 49 |
+
"total_vat": "₹32,126.81",
|
| 50 |
+
"total_gross_worth": "₹299,850.22",
|
| 51 |
+
"total_cgst": "₹0.00",
|
| 52 |
+
"total_sgst": "₹0.00",
|
| 53 |
+
"total_igst": "₹32,126.81"
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00138.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "VXY/564",
|
| 5 |
+
"invoice_date": "18/01/2025",
|
| 6 |
+
"seller": "CITY ELECTRONICS 59/485, Murthy Marg, Sasaram 311435",
|
| 7 |
+
"client": "DARIKA SHUKLA 285, Nigam Nagar, Khandwa 131785",
|
| 8 |
+
"shipping_address": "285, Nigam Nagar, Khandwa 131785",
|
| 9 |
+
"seller_tax_id": "21WWCPB9677D1ZV",
|
| 10 |
+
"client_tax_id": "32JMYQJ1747N1ZB",
|
| 11 |
+
"client_phone": "08814034520"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "IFB Microwave IFB-975D",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "51,054.39",
|
| 18 |
+
"item_net_worth": "51,054.39",
|
| 19 |
+
"item_vat": "12%",
|
| 20 |
+
"item_hsn": "8516"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Boat Headphones BOA-202L",
|
| 24 |
+
"item_qty": "1",
|
| 25 |
+
"item_net_price": "92,792.24",
|
| 26 |
+
"item_net_worth": "92,792.24",
|
| 27 |
+
"item_vat": "12%",
|
| 28 |
+
"item_hsn": "8518"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"summary": {
|
| 32 |
+
"total_net_worth": "₹143,846.63",
|
| 33 |
+
"total_vat": "₹17,261.60",
|
| 34 |
+
"total_gross_worth": "₹161,108.23",
|
| 35 |
+
"total_cgst": "₹8,630.80",
|
| 36 |
+
"total_sgst": "₹8,630.80",
|
| 37 |
+
"total_igst": "₹0.00"
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00139.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "25/861",
|
| 5 |
+
"invoice_date": "28/09/2025",
|
| 6 |
+
"seller": "STAR ELECTRONICS H.No. 869, Kapadia Ganj, Amravati 900154",
|
| 7 |
+
"client": "CHAMPAK SINGH 81/10, Anand Zila, Rajkot 526366",
|
| 8 |
+
"shipping_address": "81/10, Anand Zila, Rajkot 526366",
|
| 9 |
+
"seller_tax_id": "37HXSTH8871M1ZU",
|
| 10 |
+
"client_tax_id": "16UPOZW0868H1ZA",
|
| 11 |
+
"client_phone": "+913094212657"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "JBL Headphones JBL-673V",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "28,417.40",
|
| 18 |
+
"item_net_worth": "28,417.40",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8518"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹28,417.40",
|
| 25 |
+
"total_vat": "₹5,115.13",
|
| 26 |
+
"total_gross_worth": "₹33,532.53",
|
| 27 |
+
"total_cgst": "₹0.00",
|
| 28 |
+
"total_sgst": "₹0.00",
|
| 29 |
+
"total_igst": "₹5,115.13"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00140.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "INV-2024-2220",
|
| 5 |
+
"invoice_date": "22/02/2025",
|
| 6 |
+
"seller": "MOBILE POINT 95/02, Mani Nagar, Jammu-868295",
|
| 7 |
+
"client": "ORINDER AHUJA 52, Date Chowk, Katni-682052",
|
| 8 |
+
"shipping_address": "52, Date Chowk, Katni-682052",
|
| 9 |
+
"seller_tax_id": "33ZXMMO3593E1Z6",
|
| 10 |
+
"client_tax_id": "23JTRZN8240Q1ZJ",
|
| 11 |
+
"client_phone": "04474139368"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Fujifilm Camera FUJ-762Y",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "52,471.59",
|
| 18 |
+
"item_net_worth": "104,943.18",
|
| 19 |
+
"item_vat": "12%",
|
| 20 |
+
"item_hsn": "8525"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Samsung Refrigerator SAM-280D",
|
| 24 |
+
"item_qty": "2",
|
| 25 |
+
"item_net_price": "93,010.51",
|
| 26 |
+
"item_net_worth": "186,021.02",
|
| 27 |
+
"item_vat": "12%",
|
| 28 |
+
"item_hsn": "8418"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "Apple Smartwatch APP-162L",
|
| 32 |
+
"item_qty": "1",
|
| 33 |
+
"item_net_price": "61,111.51",
|
| 34 |
+
"item_net_worth": "61,111.51",
|
| 35 |
+
"item_vat": "12%",
|
| 36 |
+
"item_hsn": "8517"
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"summary": {
|
| 40 |
+
"total_net_worth": "₹352,075.71",
|
| 41 |
+
"total_vat": "₹42,249.09",
|
| 42 |
+
"total_gross_worth": "₹394,324.80",
|
| 43 |
+
"total_cgst": "₹21,124.54",
|
| 44 |
+
"total_sgst": "₹21,124.54",
|
| 45 |
+
"total_igst": "₹0.00"
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00141.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "24/789",
|
| 5 |
+
"invoice_date": "24/05/2025",
|
| 6 |
+
"seller": "STAR ELECTRONICS 90, Shah Zila, Bulandshahr 019215",
|
| 7 |
+
"client": "REVA SUBRAMANIAM 04, Chakraborty Street, Jehanabad 046777",
|
| 8 |
+
"shipping_address": "04, Chakraborty Street, Jehanabad 046777",
|
| 9 |
+
"seller_tax_id": "20MTTXD7792H1Z8",
|
| 10 |
+
"client_tax_id": "04NWMFZ2015K1ZA",
|
| 11 |
+
"client_phone": "00315747316"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Bajaj Bike BAJ-928D",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "70,241.19",
|
| 18 |
+
"item_net_worth": "70,241.19",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8711"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹70,241.19",
|
| 25 |
+
"total_vat": "₹12,643.41",
|
| 26 |
+
"total_gross_worth": "₹82,884.60",
|
| 27 |
+
"total_cgst": "₹6,321.71",
|
| 28 |
+
"total_sgst": "₹6,321.71",
|
| 29 |
+
"total_igst": "₹0.00"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00142.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "25/701",
|
| 5 |
+
"invoice_date": "20/03/2025",
|
| 6 |
+
"seller": "STAR ELECTRONICS 42, Dutt Chowk, Sangli-Miraj & Kupwad-049543",
|
| 7 |
+
"client": "ONVEER RASTOGI 14/03, Choudhary Nagar, Agra 072817",
|
| 8 |
+
"shipping_address": "14/03, Choudhary Nagar, Agra 072817",
|
| 9 |
+
"seller_tax_id": "14PQVMZ4030H1ZP",
|
| 10 |
+
"client_tax_id": "14TURZX1781K1ZM",
|
| 11 |
+
"client_phone": "7873315903"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Samsung Tablets SAM-711Z",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "27,392.83",
|
| 18 |
+
"item_net_worth": "54,785.66",
|
| 19 |
+
"item_vat": "12%",
|
| 20 |
+
"item_hsn": "8471"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Bosch Washing Machine BOS-616K",
|
| 24 |
+
"item_qty": "2",
|
| 25 |
+
"item_net_price": "33,824.06",
|
| 26 |
+
"item_net_worth": "67,648.12",
|
| 27 |
+
"item_vat": "12%",
|
| 28 |
+
"item_hsn": "8450"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "Whirlpool Microwave WHI-517O",
|
| 32 |
+
"item_qty": "1",
|
| 33 |
+
"item_net_price": "43,760.02",
|
| 34 |
+
"item_net_worth": "43,760.02",
|
| 35 |
+
"item_vat": "12%",
|
| 36 |
+
"item_hsn": "8516"
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"summary": {
|
| 40 |
+
"total_net_worth": "₹166,193.80",
|
| 41 |
+
"total_vat": "₹19,943.26",
|
| 42 |
+
"total_gross_worth": "₹186,137.06",
|
| 43 |
+
"total_cgst": "₹0.00",
|
| 44 |
+
"total_sgst": "₹0.00",
|
| 45 |
+
"total_igst": "₹19,943.26"
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00143.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "YWC/849",
|
| 5 |
+
"invoice_date": "25/09/2025",
|
| 6 |
+
"seller": "VISHWA ELECTRONICS 86, Mital Street, Gandhinagar-664138",
|
| 7 |
+
"client": "LAJITA TARA 62/58, Sethi Chowk, Dewas 550514",
|
| 8 |
+
"shipping_address": "18/774, Rao, Ujjain-831229",
|
| 9 |
+
"seller_tax_id": "06IZDWB5662Q1ZE",
|
| 10 |
+
"client_tax_id": "06DDPYT9810B1ZM",
|
| 11 |
+
"client_phone": "+916930975916"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Sony Television SON-190P",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "24,151.92",
|
| 18 |
+
"item_net_worth": "24,151.92",
|
| 19 |
+
"item_vat": "28%",
|
| 20 |
+
"item_hsn": "8528"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹24,151.92",
|
| 25 |
+
"total_vat": "₹6,762.54",
|
| 26 |
+
"total_gross_worth": "₹30,914.46",
|
| 27 |
+
"total_cgst": "₹3,381.27",
|
| 28 |
+
"total_sgst": "₹3,381.27",
|
| 29 |
+
"total_igst": "₹0.00"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00144.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "KNM/654",
|
| 5 |
+
"invoice_date": "14/10/2025",
|
| 6 |
+
"seller": "PATEL MOBILES H.No. 02, Golla Ganj, Jamalpur-115045",
|
| 7 |
+
"client": "IRYA MUNSHI H.No. 20, Issac Chowk, Tirupati 729303",
|
| 8 |
+
"shipping_address": "H.No. 20, Issac Chowk, Tirupati 729303",
|
| 9 |
+
"seller_tax_id": "21ROBIF6603W1Z6",
|
| 10 |
+
"client_tax_id": "27ZJDAO3462U1Z1",
|
| 11 |
+
"client_phone": "5026534416"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Apple Smartwatch APP-991U",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "87,249.21",
|
| 18 |
+
"item_net_worth": "87,249.21",
|
| 19 |
+
"item_vat": "18%",
|
| 20 |
+
"item_hsn": "8517"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"summary": {
|
| 24 |
+
"total_net_worth": "₹87,249.21",
|
| 25 |
+
"total_vat": "₹15,704.86",
|
| 26 |
+
"total_gross_worth": "₹102,954.07",
|
| 27 |
+
"total_cgst": "₹7,852.43",
|
| 28 |
+
"total_sgst": "₹7,852.43",
|
| 29 |
+
"total_igst": "₹0.00"
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00145.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "QFG/601",
|
| 5 |
+
"invoice_date": "09/02/2025",
|
| 6 |
+
"seller": "PRADHAN MOBILE SHOP 35/83, Chakraborty, Surat-079291",
|
| 7 |
+
"client": "KRISHNA DALAL 01/16, Bava Zila, Noida-256678",
|
| 8 |
+
"shipping_address": "01/16, Bava Zila, Noida-256678",
|
| 9 |
+
"seller_tax_id": "34CMWVZ4351C1ZL",
|
| 10 |
+
"client_tax_id": "29YRTPV5955Z1ZL",
|
| 11 |
+
"client_phone": "05279804922"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Haier Refrigerator HAI-976J",
|
| 16 |
+
"item_qty": "2",
|
| 17 |
+
"item_net_price": "67,570.91",
|
| 18 |
+
"item_net_worth": "135,141.82",
|
| 19 |
+
"item_vat": "28%",
|
| 20 |
+
"item_hsn": "8418"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Lenovo Tablets LEN-321B",
|
| 24 |
+
"item_qty": "1",
|
| 25 |
+
"item_net_price": "78,541.31",
|
| 26 |
+
"item_net_worth": "78,541.31",
|
| 27 |
+
"item_vat": "28%",
|
| 28 |
+
"item_hsn": "8471"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"item_desc": "Samsung Air Conditioner SAM-106W",
|
| 32 |
+
"item_qty": "1",
|
| 33 |
+
"item_net_price": "62,985.89",
|
| 34 |
+
"item_net_worth": "62,985.89",
|
| 35 |
+
"item_vat": "28%",
|
| 36 |
+
"item_hsn": "8415"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"item_desc": "JBL Speaker JBL-815P",
|
| 40 |
+
"item_qty": "2",
|
| 41 |
+
"item_net_price": "44,406.28",
|
| 42 |
+
"item_net_worth": "88,812.56",
|
| 43 |
+
"item_vat": "28%",
|
| 44 |
+
"item_hsn": "8518"
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"summary": {
|
| 48 |
+
"total_net_worth": "₹365,481.58",
|
| 49 |
+
"total_vat": "₹102,334.84",
|
| 50 |
+
"total_gross_worth": "₹467,816.42",
|
| 51 |
+
"total_cgst": "₹0.00",
|
| 52 |
+
"total_sgst": "₹0.00",
|
| 53 |
+
"total_igst": "₹102,334.84"
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
}
|
durable_invoices_dataset_v9_fixed_finalrun/annotations/invoice_00146.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gt_parse": {
|
| 3 |
+
"header": {
|
| 4 |
+
"invoice_number": "25/831",
|
| 5 |
+
"invoice_date": "06/05/2025",
|
| 6 |
+
"seller": "GADGET GALAXY H.No. 62, Kar Nagar, Satara-877170",
|
| 7 |
+
"client": "DIPTA MODY H.No. 483, Dey Nagar, Bhilwara 618153",
|
| 8 |
+
"shipping_address": "H.No. 483, Dey Nagar, Bhilwara 618153",
|
| 9 |
+
"seller_tax_id": "31ZOIBF3703A1Z2",
|
| 10 |
+
"client_tax_id": "30WGANS3834R1ZY",
|
| 11 |
+
"client_phone": "05779497696"
|
| 12 |
+
},
|
| 13 |
+
"items": [
|
| 14 |
+
{
|
| 15 |
+
"item_desc": "Bosch Washing Machine BOS-583Z",
|
| 16 |
+
"item_qty": "1",
|
| 17 |
+
"item_net_price": "40,700.73",
|
| 18 |
+
"item_net_worth": "40,700.73",
|
| 19 |
+
"item_vat": "12%",
|
| 20 |
+
"item_hsn": "8450"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"item_desc": "Samsung Smartwatch SAM-952A",
|
| 24 |
+
"item_qty": "1",
|
| 25 |
+
"item_net_price": "35,453.00",
|
| 26 |
+
"item_net_worth": "35,453.00",
|
| 27 |
+
"item_vat": "12%",
|
| 28 |
+
"item_hsn": "8517"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"summary": {
|
| 32 |
+
"total_net_worth": "₹76,153.73",
|
| 33 |
+
"total_vat": "₹9,138.45",
|
| 34 |
+
"total_gross_worth": "₹85,292.18",
|
| 35 |
+
"total_cgst": "₹0.00",
|
| 36 |
+
"total_sgst": "₹0.00",
|
| 37 |
+
"total_igst": "₹9,138.45"
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
}
|
layoutaware_ner.ipynb
ADDED
|
@@ -0,0 +1,1408 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"nbformat": 4,
|
| 3 |
+
"nbformat_minor": 0,
|
| 4 |
+
"metadata": {
|
| 5 |
+
"colab": {
|
| 6 |
+
"provenance": [],
|
| 7 |
+
"gpuType": "T4"
|
| 8 |
+
},
|
| 9 |
+
"kernelspec": {
|
| 10 |
+
"name": "python3",
|
| 11 |
+
"display_name": "Python 3"
|
| 12 |
+
},
|
| 13 |
+
"language_info": {
|
| 14 |
+
"name": "python"
|
| 15 |
+
},
|
| 16 |
+
"accelerator": "GPU",
|
| 17 |
+
"widgets": {
|
| 18 |
+
"application/vnd.jupyter.widget-state+json": {
|
| 19 |
+
"f288b0483e30432ca828f6a8fa83c170": {
|
| 20 |
+
"model_module": "@jupyter-widgets/controls",
|
| 21 |
+
"model_name": "HBoxModel",
|
| 22 |
+
"model_module_version": "1.5.0",
|
| 23 |
+
"state": {
|
| 24 |
+
"_dom_classes": [],
|
| 25 |
+
"_model_module": "@jupyter-widgets/controls",
|
| 26 |
+
"_model_module_version": "1.5.0",
|
| 27 |
+
"_model_name": "HBoxModel",
|
| 28 |
+
"_view_count": null,
|
| 29 |
+
"_view_module": "@jupyter-widgets/controls",
|
| 30 |
+
"_view_module_version": "1.5.0",
|
| 31 |
+
"_view_name": "HBoxView",
|
| 32 |
+
"box_style": "",
|
| 33 |
+
"children": [
|
| 34 |
+
"IPY_MODEL_24d4f3354a1e4cb595178f6c2a3d9184",
|
| 35 |
+
"IPY_MODEL_12c0bac81f6c433597b9049d65ef3622",
|
| 36 |
+
"IPY_MODEL_dc4e853706a841e4bb9116367a941777"
|
| 37 |
+
],
|
| 38 |
+
"layout": "IPY_MODEL_3891ce65fe8644ec9613c56d95bace7f"
|
| 39 |
+
}
|
| 40 |
+
},
|
| 41 |
+
"24d4f3354a1e4cb595178f6c2a3d9184": {
|
| 42 |
+
"model_module": "@jupyter-widgets/controls",
|
| 43 |
+
"model_name": "HTMLModel",
|
| 44 |
+
"model_module_version": "1.5.0",
|
| 45 |
+
"state": {
|
| 46 |
+
"_dom_classes": [],
|
| 47 |
+
"_model_module": "@jupyter-widgets/controls",
|
| 48 |
+
"_model_module_version": "1.5.0",
|
| 49 |
+
"_model_name": "HTMLModel",
|
| 50 |
+
"_view_count": null,
|
| 51 |
+
"_view_module": "@jupyter-widgets/controls",
|
| 52 |
+
"_view_module_version": "1.5.0",
|
| 53 |
+
"_view_name": "HTMLView",
|
| 54 |
+
"description": "",
|
| 55 |
+
"description_tooltip": null,
|
| 56 |
+
"layout": "IPY_MODEL_b790751bb9284c91920ac87606388ca9",
|
| 57 |
+
"placeholder": "",
|
| 58 |
+
"style": "IPY_MODEL_484383d87bdc4126bf966a94f68aff93",
|
| 59 |
+
"value": "Map: 100%"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"12c0bac81f6c433597b9049d65ef3622": {
|
| 63 |
+
"model_module": "@jupyter-widgets/controls",
|
| 64 |
+
"model_name": "FloatProgressModel",
|
| 65 |
+
"model_module_version": "1.5.0",
|
| 66 |
+
"state": {
|
| 67 |
+
"_dom_classes": [],
|
| 68 |
+
"_model_module": "@jupyter-widgets/controls",
|
| 69 |
+
"_model_module_version": "1.5.0",
|
| 70 |
+
"_model_name": "FloatProgressModel",
|
| 71 |
+
"_view_count": null,
|
| 72 |
+
"_view_module": "@jupyter-widgets/controls",
|
| 73 |
+
"_view_module_version": "1.5.0",
|
| 74 |
+
"_view_name": "ProgressView",
|
| 75 |
+
"bar_style": "success",
|
| 76 |
+
"description": "",
|
| 77 |
+
"description_tooltip": null,
|
| 78 |
+
"layout": "IPY_MODEL_99781a5386464804af0c5e1b9d6c57f6",
|
| 79 |
+
"max": 700,
|
| 80 |
+
"min": 0,
|
| 81 |
+
"orientation": "horizontal",
|
| 82 |
+
"style": "IPY_MODEL_f66bac73f7fb487bad105ba35f5d5e2a",
|
| 83 |
+
"value": 700
|
| 84 |
+
}
|
| 85 |
+
},
|
| 86 |
+
"dc4e853706a841e4bb9116367a941777": {
|
| 87 |
+
"model_module": "@jupyter-widgets/controls",
|
| 88 |
+
"model_name": "HTMLModel",
|
| 89 |
+
"model_module_version": "1.5.0",
|
| 90 |
+
"state": {
|
| 91 |
+
"_dom_classes": [],
|
| 92 |
+
"_model_module": "@jupyter-widgets/controls",
|
| 93 |
+
"_model_module_version": "1.5.0",
|
| 94 |
+
"_model_name": "HTMLModel",
|
| 95 |
+
"_view_count": null,
|
| 96 |
+
"_view_module": "@jupyter-widgets/controls",
|
| 97 |
+
"_view_module_version": "1.5.0",
|
| 98 |
+
"_view_name": "HTMLView",
|
| 99 |
+
"description": "",
|
| 100 |
+
"description_tooltip": null,
|
| 101 |
+
"layout": "IPY_MODEL_1346c30a4e334dd9a153ab10b1fff76a",
|
| 102 |
+
"placeholder": "",
|
| 103 |
+
"style": "IPY_MODEL_8212317092c04d118da6c8f5c623906d",
|
| 104 |
+
"value": " 700/700 [00:03<00:00, 200.98 examples/s]"
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
"3891ce65fe8644ec9613c56d95bace7f": {
|
| 108 |
+
"model_module": "@jupyter-widgets/base",
|
| 109 |
+
"model_name": "LayoutModel",
|
| 110 |
+
"model_module_version": "1.2.0",
|
| 111 |
+
"state": {
|
| 112 |
+
"_model_module": "@jupyter-widgets/base",
|
| 113 |
+
"_model_module_version": "1.2.0",
|
| 114 |
+
"_model_name": "LayoutModel",
|
| 115 |
+
"_view_count": null,
|
| 116 |
+
"_view_module": "@jupyter-widgets/base",
|
| 117 |
+
"_view_module_version": "1.2.0",
|
| 118 |
+
"_view_name": "LayoutView",
|
| 119 |
+
"align_content": null,
|
| 120 |
+
"align_items": null,
|
| 121 |
+
"align_self": null,
|
| 122 |
+
"border": null,
|
| 123 |
+
"bottom": null,
|
| 124 |
+
"display": null,
|
| 125 |
+
"flex": null,
|
| 126 |
+
"flex_flow": null,
|
| 127 |
+
"grid_area": null,
|
| 128 |
+
"grid_auto_columns": null,
|
| 129 |
+
"grid_auto_flow": null,
|
| 130 |
+
"grid_auto_rows": null,
|
| 131 |
+
"grid_column": null,
|
| 132 |
+
"grid_gap": null,
|
| 133 |
+
"grid_row": null,
|
| 134 |
+
"grid_template_areas": null,
|
| 135 |
+
"grid_template_columns": null,
|
| 136 |
+
"grid_template_rows": null,
|
| 137 |
+
"height": null,
|
| 138 |
+
"justify_content": null,
|
| 139 |
+
"justify_items": null,
|
| 140 |
+
"left": null,
|
| 141 |
+
"margin": null,
|
| 142 |
+
"max_height": null,
|
| 143 |
+
"max_width": null,
|
| 144 |
+
"min_height": null,
|
| 145 |
+
"min_width": null,
|
| 146 |
+
"object_fit": null,
|
| 147 |
+
"object_position": null,
|
| 148 |
+
"order": null,
|
| 149 |
+
"overflow": null,
|
| 150 |
+
"overflow_x": null,
|
| 151 |
+
"overflow_y": null,
|
| 152 |
+
"padding": null,
|
| 153 |
+
"right": null,
|
| 154 |
+
"top": null,
|
| 155 |
+
"visibility": null,
|
| 156 |
+
"width": null
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
"b790751bb9284c91920ac87606388ca9": {
|
| 160 |
+
"model_module": "@jupyter-widgets/base",
|
| 161 |
+
"model_name": "LayoutModel",
|
| 162 |
+
"model_module_version": "1.2.0",
|
| 163 |
+
"state": {
|
| 164 |
+
"_model_module": "@jupyter-widgets/base",
|
| 165 |
+
"_model_module_version": "1.2.0",
|
| 166 |
+
"_model_name": "LayoutModel",
|
| 167 |
+
"_view_count": null,
|
| 168 |
+
"_view_module": "@jupyter-widgets/base",
|
| 169 |
+
"_view_module_version": "1.2.0",
|
| 170 |
+
"_view_name": "LayoutView",
|
| 171 |
+
"align_content": null,
|
| 172 |
+
"align_items": null,
|
| 173 |
+
"align_self": null,
|
| 174 |
+
"border": null,
|
| 175 |
+
"bottom": null,
|
| 176 |
+
"display": null,
|
| 177 |
+
"flex": null,
|
| 178 |
+
"flex_flow": null,
|
| 179 |
+
"grid_area": null,
|
| 180 |
+
"grid_auto_columns": null,
|
| 181 |
+
"grid_auto_flow": null,
|
| 182 |
+
"grid_auto_rows": null,
|
| 183 |
+
"grid_column": null,
|
| 184 |
+
"grid_gap": null,
|
| 185 |
+
"grid_row": null,
|
| 186 |
+
"grid_template_areas": null,
|
| 187 |
+
"grid_template_columns": null,
|
| 188 |
+
"grid_template_rows": null,
|
| 189 |
+
"height": null,
|
| 190 |
+
"justify_content": null,
|
| 191 |
+
"justify_items": null,
|
| 192 |
+
"left": null,
|
| 193 |
+
"margin": null,
|
| 194 |
+
"max_height": null,
|
| 195 |
+
"max_width": null,
|
| 196 |
+
"min_height": null,
|
| 197 |
+
"min_width": null,
|
| 198 |
+
"object_fit": null,
|
| 199 |
+
"object_position": null,
|
| 200 |
+
"order": null,
|
| 201 |
+
"overflow": null,
|
| 202 |
+
"overflow_x": null,
|
| 203 |
+
"overflow_y": null,
|
| 204 |
+
"padding": null,
|
| 205 |
+
"right": null,
|
| 206 |
+
"top": null,
|
| 207 |
+
"visibility": null,
|
| 208 |
+
"width": null
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
"484383d87bdc4126bf966a94f68aff93": {
|
| 212 |
+
"model_module": "@jupyter-widgets/controls",
|
| 213 |
+
"model_name": "DescriptionStyleModel",
|
| 214 |
+
"model_module_version": "1.5.0",
|
| 215 |
+
"state": {
|
| 216 |
+
"_model_module": "@jupyter-widgets/controls",
|
| 217 |
+
"_model_module_version": "1.5.0",
|
| 218 |
+
"_model_name": "DescriptionStyleModel",
|
| 219 |
+
"_view_count": null,
|
| 220 |
+
"_view_module": "@jupyter-widgets/base",
|
| 221 |
+
"_view_module_version": "1.2.0",
|
| 222 |
+
"_view_name": "StyleView",
|
| 223 |
+
"description_width": ""
|
| 224 |
+
}
|
| 225 |
+
},
|
| 226 |
+
"99781a5386464804af0c5e1b9d6c57f6": {
|
| 227 |
+
"model_module": "@jupyter-widgets/base",
|
| 228 |
+
"model_name": "LayoutModel",
|
| 229 |
+
"model_module_version": "1.2.0",
|
| 230 |
+
"state": {
|
| 231 |
+
"_model_module": "@jupyter-widgets/base",
|
| 232 |
+
"_model_module_version": "1.2.0",
|
| 233 |
+
"_model_name": "LayoutModel",
|
| 234 |
+
"_view_count": null,
|
| 235 |
+
"_view_module": "@jupyter-widgets/base",
|
| 236 |
+
"_view_module_version": "1.2.0",
|
| 237 |
+
"_view_name": "LayoutView",
|
| 238 |
+
"align_content": null,
|
| 239 |
+
"align_items": null,
|
| 240 |
+
"align_self": null,
|
| 241 |
+
"border": null,
|
| 242 |
+
"bottom": null,
|
| 243 |
+
"display": null,
|
| 244 |
+
"flex": null,
|
| 245 |
+
"flex_flow": null,
|
| 246 |
+
"grid_area": null,
|
| 247 |
+
"grid_auto_columns": null,
|
| 248 |
+
"grid_auto_flow": null,
|
| 249 |
+
"grid_auto_rows": null,
|
| 250 |
+
"grid_column": null,
|
| 251 |
+
"grid_gap": null,
|
| 252 |
+
"grid_row": null,
|
| 253 |
+
"grid_template_areas": null,
|
| 254 |
+
"grid_template_columns": null,
|
| 255 |
+
"grid_template_rows": null,
|
| 256 |
+
"height": null,
|
| 257 |
+
"justify_content": null,
|
| 258 |
+
"justify_items": null,
|
| 259 |
+
"left": null,
|
| 260 |
+
"margin": null,
|
| 261 |
+
"max_height": null,
|
| 262 |
+
"max_width": null,
|
| 263 |
+
"min_height": null,
|
| 264 |
+
"min_width": null,
|
| 265 |
+
"object_fit": null,
|
| 266 |
+
"object_position": null,
|
| 267 |
+
"order": null,
|
| 268 |
+
"overflow": null,
|
| 269 |
+
"overflow_x": null,
|
| 270 |
+
"overflow_y": null,
|
| 271 |
+
"padding": null,
|
| 272 |
+
"right": null,
|
| 273 |
+
"top": null,
|
| 274 |
+
"visibility": null,
|
| 275 |
+
"width": null
|
| 276 |
+
}
|
| 277 |
+
},
|
| 278 |
+
"f66bac73f7fb487bad105ba35f5d5e2a": {
|
| 279 |
+
"model_module": "@jupyter-widgets/controls",
|
| 280 |
+
"model_name": "ProgressStyleModel",
|
| 281 |
+
"model_module_version": "1.5.0",
|
| 282 |
+
"state": {
|
| 283 |
+
"_model_module": "@jupyter-widgets/controls",
|
| 284 |
+
"_model_module_version": "1.5.0",
|
| 285 |
+
"_model_name": "ProgressStyleModel",
|
| 286 |
+
"_view_count": null,
|
| 287 |
+
"_view_module": "@jupyter-widgets/base",
|
| 288 |
+
"_view_module_version": "1.2.0",
|
| 289 |
+
"_view_name": "StyleView",
|
| 290 |
+
"bar_color": null,
|
| 291 |
+
"description_width": ""
|
| 292 |
+
}
|
| 293 |
+
},
|
| 294 |
+
"1346c30a4e334dd9a153ab10b1fff76a": {
|
| 295 |
+
"model_module": "@jupyter-widgets/base",
|
| 296 |
+
"model_name": "LayoutModel",
|
| 297 |
+
"model_module_version": "1.2.0",
|
| 298 |
+
"state": {
|
| 299 |
+
"_model_module": "@jupyter-widgets/base",
|
| 300 |
+
"_model_module_version": "1.2.0",
|
| 301 |
+
"_model_name": "LayoutModel",
|
| 302 |
+
"_view_count": null,
|
| 303 |
+
"_view_module": "@jupyter-widgets/base",
|
| 304 |
+
"_view_module_version": "1.2.0",
|
| 305 |
+
"_view_name": "LayoutView",
|
| 306 |
+
"align_content": null,
|
| 307 |
+
"align_items": null,
|
| 308 |
+
"align_self": null,
|
| 309 |
+
"border": null,
|
| 310 |
+
"bottom": null,
|
| 311 |
+
"display": null,
|
| 312 |
+
"flex": null,
|
| 313 |
+
"flex_flow": null,
|
| 314 |
+
"grid_area": null,
|
| 315 |
+
"grid_auto_columns": null,
|
| 316 |
+
"grid_auto_flow": null,
|
| 317 |
+
"grid_auto_rows": null,
|
| 318 |
+
"grid_column": null,
|
| 319 |
+
"grid_gap": null,
|
| 320 |
+
"grid_row": null,
|
| 321 |
+
"grid_template_areas": null,
|
| 322 |
+
"grid_template_columns": null,
|
| 323 |
+
"grid_template_rows": null,
|
| 324 |
+
"height": null,
|
| 325 |
+
"justify_content": null,
|
| 326 |
+
"justify_items": null,
|
| 327 |
+
"left": null,
|
| 328 |
+
"margin": null,
|
| 329 |
+
"max_height": null,
|
| 330 |
+
"max_width": null,
|
| 331 |
+
"min_height": null,
|
| 332 |
+
"min_width": null,
|
| 333 |
+
"object_fit": null,
|
| 334 |
+
"object_position": null,
|
| 335 |
+
"order": null,
|
| 336 |
+
"overflow": null,
|
| 337 |
+
"overflow_x": null,
|
| 338 |
+
"overflow_y": null,
|
| 339 |
+
"padding": null,
|
| 340 |
+
"right": null,
|
| 341 |
+
"top": null,
|
| 342 |
+
"visibility": null,
|
| 343 |
+
"width": null
|
| 344 |
+
}
|
| 345 |
+
},
|
| 346 |
+
"8212317092c04d118da6c8f5c623906d": {
|
| 347 |
+
"model_module": "@jupyter-widgets/controls",
|
| 348 |
+
"model_name": "DescriptionStyleModel",
|
| 349 |
+
"model_module_version": "1.5.0",
|
| 350 |
+
"state": {
|
| 351 |
+
"_model_module": "@jupyter-widgets/controls",
|
| 352 |
+
"_model_module_version": "1.5.0",
|
| 353 |
+
"_model_name": "DescriptionStyleModel",
|
| 354 |
+
"_view_count": null,
|
| 355 |
+
"_view_module": "@jupyter-widgets/base",
|
| 356 |
+
"_view_module_version": "1.2.0",
|
| 357 |
+
"_view_name": "StyleView",
|
| 358 |
+
"description_width": ""
|
| 359 |
+
}
|
| 360 |
+
}
|
| 361 |
+
}
|
| 362 |
+
}
|
| 363 |
+
},
|
| 364 |
+
"cells": [
|
| 365 |
+
{
|
| 366 |
+
"cell_type": "code",
|
| 367 |
+
"execution_count": 3,
|
| 368 |
+
"metadata": {
|
| 369 |
+
"id": "AVRjhwEW3M7s"
|
| 370 |
+
},
|
| 371 |
+
"outputs": [],
|
| 372 |
+
"source": [
|
| 373 |
+
"import sys\n",
|
| 374 |
+
"PROJECT_PATH = '/content/drive/MyDrive/durable_invoices_dataset_v9_fixed_finalrun'\n",
|
| 375 |
+
"sys.path.append(PROJECT_PATH)"
|
| 376 |
+
]
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"cell_type": "code",
|
| 380 |
+
"source": [
|
| 381 |
+
"import os\n",
|
| 382 |
+
"os.environ[\"WANDB_DISABLED\"] = \"true\""
|
| 383 |
+
],
|
| 384 |
+
"metadata": {
|
| 385 |
+
"id": "4KD1SwaF6ur9"
|
| 386 |
+
},
|
| 387 |
+
"execution_count": null,
|
| 388 |
+
"outputs": []
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"cell_type": "code",
|
| 392 |
+
"source": [
|
| 393 |
+
"import os\n",
|
| 394 |
+
"import json\n",
|
| 395 |
+
"import torch\n",
|
| 396 |
+
"from datasets import load_dataset\n",
|
| 397 |
+
"from transformers import AutoTokenizer, Trainer, TrainingArguments, HfArgumentParser\n",
|
| 398 |
+
"from transformers.data.data_collator import DataCollatorForTokenClassification\n",
|
| 399 |
+
"import numpy as np\n",
|
| 400 |
+
"from seqeval.metrics import classification_report\n",
|
| 401 |
+
"\n",
|
| 402 |
+
"# Import your custom model and its config from the other file\n",
|
| 403 |
+
"from layout_roberta import LayoutRobertaForTokenClassification, RobertaConfig\n",
|
| 404 |
+
"\n",
|
| 405 |
+
"# ===================================================================\n",
|
| 406 |
+
"# 1. CONFIGURATION\n",
|
| 407 |
+
"# ===================================================================\n",
|
| 408 |
+
"class NERConfig:\n",
|
| 409 |
+
" # --- Paths ---\n",
|
| 410 |
+
" ANNOTATION_FILE = \"/content/drive/MyDrive/durable_invoices_dataset_v9_fixed_finalrun/layout_ner_annotations.jsonl\"\n",
|
| 411 |
+
" OUTPUT_DIR = \"/content/drive/MyDrive/durable_invoices_dataset_v9_fixed_finalrun/layout-aware-invoice-ner-model-final\"\n",
|
| 412 |
+
"\n",
|
| 413 |
+
" # --- Model ---\n",
|
| 414 |
+
" BASE_MODEL = \"roberta-base\"\n",
|
| 415 |
+
"\n",
|
| 416 |
+
" # --- Training Hyperparameters ---\n",
|
| 417 |
+
" LEARNING_RATE = 3e-5\n",
|
| 418 |
+
" NUM_EPOCHS = 8 # Layout-aware models can learn quickly\n",
|
| 419 |
+
" BATCH_SIZE = 4 # Adjust based on your memory (4 is a safe start)\n",
|
| 420 |
+
" WEIGHT_DECAY = 0.01\n",
|
| 421 |
+
"\n",
|
| 422 |
+
"config = NERConfig()\n",
|
| 423 |
+
"\n",
|
| 424 |
+
"# ===================================================================\n",
|
| 425 |
+
"# 2. DATA LOADING AND PREPARATION\n",
|
| 426 |
+
"# ===================================================================\n",
|
| 427 |
+
"print(\"Loading dataset from:\", config.ANNOTATION_FILE)\n",
|
| 428 |
+
"full_dataset = load_dataset(\"json\", data_files=config.ANNOTATION_FILE, split=\"train\")\n",
|
| 429 |
+
"\n",
|
| 430 |
+
"# Create the mapping from tag names to integers\n",
|
| 431 |
+
"tags = sorted(list(set([tag for example in full_dataset for tag in example[\"ner_tags\"]])))\n",
|
| 432 |
+
"tag2id = {tag: i for i, tag in enumerate(tags)}\n",
|
| 433 |
+
"id2tag = {i: tag for tag, i in tag2id.items()}\n",
|
| 434 |
+
"label_names = list(tag2id.keys())\n",
|
| 435 |
+
"\n",
|
| 436 |
+
"print(f\"Found {len(tags)} unique NER tags.\")\n",
|
| 437 |
+
"\n",
|
| 438 |
+
"# Initialize tokenizer. `add_prefix_space` is important for RoBERTa.\n",
|
| 439 |
+
"tokenizer = AutoTokenizer.from_pretrained(config.BASE_MODEL, add_prefix_space=True)\n",
|
| 440 |
+
"\n",
|
| 441 |
+
"def preprocess_data(examples, max_length=512):\n",
|
| 442 |
+
" \"\"\"\n",
|
| 443 |
+
" Prepares words, bboxes, and tags for the LayoutRoBERTa model.\n",
|
| 444 |
+
" \"\"\"\n",
|
| 445 |
+
" words = examples['words']\n",
|
| 446 |
+
" boxes = examples['bboxes']\n",
|
| 447 |
+
" ner_tags = examples['ner_tags']\n",
|
| 448 |
+
"\n",
|
| 449 |
+
" # Tokenize words, this will handle subword splitting\n",
|
| 450 |
+
" tokenized_inputs = tokenizer(\n",
|
| 451 |
+
" words,\n",
|
| 452 |
+
" truncation=True,\n",
|
| 453 |
+
" is_split_into_words=True,\n",
|
| 454 |
+
" padding=\"max_length\",\n",
|
| 455 |
+
" max_length=max_length\n",
|
| 456 |
+
" )\n",
|
| 457 |
+
"\n",
|
| 458 |
+
" labels = []\n",
|
| 459 |
+
" bboxes_aligned = []\n",
|
| 460 |
+
" for i, label_sequence in enumerate(ner_tags):\n",
|
| 461 |
+
" word_ids = tokenized_inputs.word_ids(batch_index=i)\n",
|
| 462 |
+
" previous_word_idx = None\n",
|
| 463 |
+
" label_ids = []\n",
|
| 464 |
+
" bbox_sequence = []\n",
|
| 465 |
+
"\n",
|
| 466 |
+
" for word_idx in word_ids:\n",
|
| 467 |
+
" if word_idx is None: # Special token like [CLS], [SEP], [PAD]\n",
|
| 468 |
+
" label_ids.append(-100)\n",
|
| 469 |
+
" bbox_sequence.append([0, 0, 0, 0]) # Use a \"null\" bounding box\n",
|
| 470 |
+
" elif word_idx != previous_word_idx: # First subword of a new word\n",
|
| 471 |
+
" label_ids.append(tag2id[label_sequence[word_idx]])\n",
|
| 472 |
+
" bbox_sequence.append(boxes[i][word_idx])\n",
|
| 473 |
+
" else: # Subsequent subword of the same word\n",
|
| 474 |
+
" label_ids.append(-100) # Only label the first subword\n",
|
| 475 |
+
" bbox_sequence.append(boxes[i][word_idx]) # Propagate the bbox\n",
|
| 476 |
+
" previous_word_idx = word_idx\n",
|
| 477 |
+
"\n",
|
| 478 |
+
" labels.append(label_ids)\n",
|
| 479 |
+
" bboxes_aligned.append(bbox_sequence)\n",
|
| 480 |
+
"\n",
|
| 481 |
+
" tokenized_inputs[\"labels\"] = labels\n",
|
| 482 |
+
" tokenized_inputs[\"bbox\"] = bboxes_aligned\n",
|
| 483 |
+
" return tokenized_inputs\n",
|
| 484 |
+
"\n",
|
| 485 |
+
"print(\"Preprocessing dataset...\")\n",
|
| 486 |
+
"processed_dataset = full_dataset.map(preprocess_data, batched=True, remove_columns=full_dataset.column_names)\n",
|
| 487 |
+
"split_dataset = processed_dataset.train_test_split(test_size=0.15, seed=42)\n",
|
| 488 |
+
"train_dataset = split_dataset[\"train\"]\n",
|
| 489 |
+
"eval_dataset = split_dataset[\"test\"]\n",
|
| 490 |
+
"\n",
|
| 491 |
+
"# ===================================================================\n",
|
| 492 |
+
"# 3. METRICS COMPUTATION\n",
|
| 493 |
+
"# ===================================================================\n",
|
| 494 |
+
"def compute_metrics(p):\n",
|
| 495 |
+
" \"\"\"Computes precision, recall, F1, and accuracy for token classification.\"\"\"\n",
|
| 496 |
+
" predictions, labels = p\n",
|
| 497 |
+
" predictions = np.argmax(predictions, axis=2)\n",
|
| 498 |
+
"\n",
|
| 499 |
+
" # Remove ignored index (-100)\n",
|
| 500 |
+
" true_predictions = [\n",
|
| 501 |
+
" [label_names[p] for (p, l) in zip(prediction, label) if l != -100]\n",
|
| 502 |
+
" for prediction, label in zip(predictions, labels)\n",
|
| 503 |
+
" ]\n",
|
| 504 |
+
" true_labels = [\n",
|
| 505 |
+
" [label_names[l] for (p, l) in zip(prediction, label) if l != -100]\n",
|
| 506 |
+
" for prediction, label in zip(predictions, labels)\n",
|
| 507 |
+
" ]\n",
|
| 508 |
+
"\n",
|
| 509 |
+
" report = classification_report(true_labels, true_predictions, output_dict=True)\n",
|
| 510 |
+
" return {\n",
|
| 511 |
+
" \"precision\": report[\"micro avg\"][\"precision\"],\n",
|
| 512 |
+
" \"recall\": report[\"micro avg\"][\"recall\"],\n",
|
| 513 |
+
" \"f1\": report[\"micro avg\"][\"f1-score\"],\n",
|
| 514 |
+
" \"accuracy\": report[\"micro avg\"][\"precision\"], # For seqeval, precision is accuracy\n",
|
| 515 |
+
" }\n",
|
| 516 |
+
"\n",
|
| 517 |
+
"# ===================================================================\n",
|
| 518 |
+
"# 4. MODEL TRAINING\n",
|
| 519 |
+
"# ===================================================================\n",
|
| 520 |
+
"# Data collator handles dynamic padding for batches\n",
|
| 521 |
+
"data_collator = DataCollatorForTokenClassification(tokenizer=tokenizer)\n",
|
| 522 |
+
"\n",
|
| 523 |
+
"# Load the custom config and add our layout-specific parameters\n",
|
| 524 |
+
"model_config = RobertaConfig.from_pretrained(\n",
|
| 525 |
+
" config.BASE_MODEL,\n",
|
| 526 |
+
" num_labels=len(tags),\n",
|
| 527 |
+
" id2label=id2tag,\n",
|
| 528 |
+
" label2id=tag2id\n",
|
| 529 |
+
")\n",
|
| 530 |
+
"model_config.max_2d_position_embeddings = 1024 # Assumes coordinates are normalized to [0, 1000]\n",
|
| 531 |
+
"\n",
|
| 532 |
+
"# Instantiate our custom model\n",
|
| 533 |
+
"# `ignore_mismatched_sizes=True` is crucial because we are replacing the embedding layer.\n",
|
| 534 |
+
"model = LayoutRobertaForTokenClassification.from_pretrained(\n",
|
| 535 |
+
" config.BASE_MODEL,\n",
|
| 536 |
+
" config=model_config,\n",
|
| 537 |
+
" ignore_mismatched_sizes=True\n",
|
| 538 |
+
")\n",
|
| 539 |
+
"\n",
|
| 540 |
+
"training_args = TrainingArguments(\n",
|
| 541 |
+
" output_dir=config.OUTPUT_DIR,\n",
|
| 542 |
+
" learning_rate=config.LEARNING_RATE,\n",
|
| 543 |
+
" per_device_train_batch_size=config.BATCH_SIZE,\n",
|
| 544 |
+
" per_device_eval_batch_size=config.BATCH_SIZE,\n",
|
| 545 |
+
" num_train_epochs=config.NUM_EPOCHS,\n",
|
| 546 |
+
" weight_decay=config.WEIGHT_DECAY,\n",
|
| 547 |
+
" evaluation_strategy=\"epoch\",\n",
|
| 548 |
+
" save_strategy=\"epoch\",\n",
|
| 549 |
+
" load_best_model_at_end=True, # Automatically save the best model\n",
|
| 550 |
+
" metric_for_best_model=\"f1\",\n",
|
| 551 |
+
" push_to_hub=False,\n",
|
| 552 |
+
" logging_steps=20,\n",
|
| 553 |
+
" save_total_limit=1, # Only keep the best checkpoint\n",
|
| 554 |
+
")\n",
|
| 555 |
+
"\n",
|
| 556 |
+
"trainer = Trainer(\n",
|
| 557 |
+
" model=model,\n",
|
| 558 |
+
" args=training_args,\n",
|
| 559 |
+
" train_dataset=train_dataset,\n",
|
| 560 |
+
" eval_dataset=eval_dataset,\n",
|
| 561 |
+
" tokenizer=tokenizer,\n",
|
| 562 |
+
" data_collator=data_collator,\n",
|
| 563 |
+
" compute_metrics=compute_metrics, # Add our metrics function\n",
|
| 564 |
+
")\n",
|
| 565 |
+
"\n",
|
| 566 |
+
"print(\"Starting Layout-Aware NER model training...\")\n",
|
| 567 |
+
"trainer.train()\n",
|
| 568 |
+
"\n",
|
| 569 |
+
"# Save the final best model to a clean directory\n",
|
| 570 |
+
"final_model_path = os.path.join(config.OUTPUT_DIR, \"best_model\")\n",
|
| 571 |
+
"trainer.save_model(final_model_path)\n",
|
| 572 |
+
"print(f\"✓ Training complete! Best model saved to: {final_model_path}\")"
|
| 573 |
+
],
|
| 574 |
+
"metadata": {
|
| 575 |
+
"colab": {
|
| 576 |
+
"base_uri": "https://localhost:8080/",
|
| 577 |
+
"height": 1000,
|
| 578 |
+
"referenced_widgets": [
|
| 579 |
+
"f288b0483e30432ca828f6a8fa83c170",
|
| 580 |
+
"24d4f3354a1e4cb595178f6c2a3d9184",
|
| 581 |
+
"12c0bac81f6c433597b9049d65ef3622",
|
| 582 |
+
"dc4e853706a841e4bb9116367a941777",
|
| 583 |
+
"3891ce65fe8644ec9613c56d95bace7f",
|
| 584 |
+
"b790751bb9284c91920ac87606388ca9",
|
| 585 |
+
"484383d87bdc4126bf966a94f68aff93",
|
| 586 |
+
"99781a5386464804af0c5e1b9d6c57f6",
|
| 587 |
+
"f66bac73f7fb487bad105ba35f5d5e2a",
|
| 588 |
+
"1346c30a4e334dd9a153ab10b1fff76a",
|
| 589 |
+
"8212317092c04d118da6c8f5c623906d"
|
| 590 |
+
]
|
| 591 |
+
},
|
| 592 |
+
"id": "ygc3ibH03xQA",
|
| 593 |
+
"outputId": "34d5400f-fd6a-42d8-d364-8983ed6e0963"
|
| 594 |
+
},
|
| 595 |
+
"execution_count": null,
|
| 596 |
+
"outputs": [
|
| 597 |
+
{
|
| 598 |
+
"output_type": "stream",
|
| 599 |
+
"name": "stderr",
|
| 600 |
+
"text": [
|
| 601 |
+
"/usr/local/lib/python3.12/dist-packages/transformers/utils/generic.py:441: FutureWarning: `torch.utils._pytree._register_pytree_node` is deprecated. Please use `torch.utils._pytree.register_pytree_node` instead.\n",
|
| 602 |
+
" _torch_pytree._register_pytree_node(\n",
|
| 603 |
+
"/usr/local/lib/python3.12/dist-packages/transformers/utils/generic.py:309: FutureWarning: `torch.utils._pytree._register_pytree_node` is deprecated. Please use `torch.utils._pytree.register_pytree_node` instead.\n",
|
| 604 |
+
" _torch_pytree._register_pytree_node(\n",
|
| 605 |
+
"/usr/local/lib/python3.12/dist-packages/transformers/utils/generic.py:309: FutureWarning: `torch.utils._pytree._register_pytree_node` is deprecated. Please use `torch.utils._pytree.register_pytree_node` instead.\n",
|
| 606 |
+
" _torch_pytree._register_pytree_node(\n"
|
| 607 |
+
]
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"output_type": "stream",
|
| 611 |
+
"name": "stdout",
|
| 612 |
+
"text": [
|
| 613 |
+
"Loading dataset from: /content/drive/MyDrive/durable_invoices_dataset_v9_fixed_finalrun/layout_ner_annotations.jsonl\n",
|
| 614 |
+
"Found 26 unique NER tags.\n"
|
| 615 |
+
]
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"output_type": "stream",
|
| 619 |
+
"name": "stderr",
|
| 620 |
+
"text": [
|
| 621 |
+
"/usr/local/lib/python3.12/dist-packages/huggingface_hub/file_download.py:942: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.\n",
|
| 622 |
+
" warnings.warn(\n",
|
| 623 |
+
"/usr/local/lib/python3.12/dist-packages/huggingface_hub/utils/_auth.py:94: UserWarning: \n",
|
| 624 |
+
"The secret `HF_TOKEN` does not exist in your Colab secrets.\n",
|
| 625 |
+
"To authenticate with the Hugging Face Hub, create a token in your settings tab (https://huggingface.co/settings/tokens), set it as secret in your Google Colab and restart your session.\n",
|
| 626 |
+
"You will be able to reuse this secret in all of your notebooks.\n",
|
| 627 |
+
"Please note that authentication is recommended but still optional to access public models or datasets.\n",
|
| 628 |
+
" warnings.warn(\n"
|
| 629 |
+
]
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"output_type": "stream",
|
| 633 |
+
"name": "stdout",
|
| 634 |
+
"text": [
|
| 635 |
+
"Preprocessing dataset...\n"
|
| 636 |
+
]
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"output_type": "display_data",
|
| 640 |
+
"data": {
|
| 641 |
+
"text/plain": [
|
| 642 |
+
"Map: 0%| | 0/700 [00:00<?, ? examples/s]"
|
| 643 |
+
],
|
| 644 |
+
"application/vnd.jupyter.widget-view+json": {
|
| 645 |
+
"version_major": 2,
|
| 646 |
+
"version_minor": 0,
|
| 647 |
+
"model_id": "f288b0483e30432ca828f6a8fa83c170"
|
| 648 |
+
}
|
| 649 |
+
},
|
| 650 |
+
"metadata": {}
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"output_type": "stream",
|
| 654 |
+
"name": "stderr",
|
| 655 |
+
"text": [
|
| 656 |
+
"Some weights of LayoutRobertaForTokenClassification were not initialized from the model checkpoint at roberta-base and are newly initialized: ['roberta.embeddings.y0_position_embeddings.weight', 'roberta.embeddings.x0_position_embeddings.weight', 'classifier.bias', 'classifier.weight', 'roberta.embeddings.y1_position_embeddings.weight', 'roberta.embeddings.x1_position_embeddings.weight']\n",
|
| 657 |
+
"You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.\n",
|
| 658 |
+
"Using the `WANDB_DISABLED` environment variable is deprecated and will be removed in v5. Use the --report_to flag to control the integrations used for logging result (for instance --report_to none).\n",
|
| 659 |
+
"/usr/local/lib/python3.12/dist-packages/accelerate/accelerator.py:432: FutureWarning: Passing the following arguments to `Accelerator` is deprecated and will be removed in version 1.0 of Accelerate: dict_keys(['dispatch_batches', 'split_batches']). Please pass an `accelerate.DataLoaderConfiguration` instead: \n",
|
| 660 |
+
"dataloader_config = DataLoaderConfiguration(dispatch_batches=None, split_batches=False)\n",
|
| 661 |
+
" warnings.warn(\n",
|
| 662 |
+
"You're using a RobertaTokenizerFast tokenizer. Please note that with a fast tokenizer, using the `__call__` method is faster than using a method to encode the text followed by a call to the `pad` method to get a padded encoding.\n"
|
| 663 |
+
]
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"output_type": "stream",
|
| 667 |
+
"name": "stdout",
|
| 668 |
+
"text": [
|
| 669 |
+
"Starting Layout-Aware NER model training...\n"
|
| 670 |
+
]
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"output_type": "display_data",
|
| 674 |
+
"data": {
|
| 675 |
+
"text/plain": [
|
| 676 |
+
"<IPython.core.display.HTML object>"
|
| 677 |
+
],
|
| 678 |
+
"text/html": [
|
| 679 |
+
"\n",
|
| 680 |
+
" <div>\n",
|
| 681 |
+
" \n",
|
| 682 |
+
" <progress value='1192' max='1192' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
|
| 683 |
+
" [1192/1192 10:53, Epoch 8/8]\n",
|
| 684 |
+
" </div>\n",
|
| 685 |
+
" <table border=\"1\" class=\"dataframe\">\n",
|
| 686 |
+
" <thead>\n",
|
| 687 |
+
" <tr style=\"text-align: left;\">\n",
|
| 688 |
+
" <th>Epoch</th>\n",
|
| 689 |
+
" <th>Training Loss</th>\n",
|
| 690 |
+
" <th>Validation Loss</th>\n",
|
| 691 |
+
" <th>Precision</th>\n",
|
| 692 |
+
" <th>Recall</th>\n",
|
| 693 |
+
" <th>F1</th>\n",
|
| 694 |
+
" <th>Accuracy</th>\n",
|
| 695 |
+
" </tr>\n",
|
| 696 |
+
" </thead>\n",
|
| 697 |
+
" <tbody>\n",
|
| 698 |
+
" <tr>\n",
|
| 699 |
+
" <td>1</td>\n",
|
| 700 |
+
" <td>0.064600</td>\n",
|
| 701 |
+
" <td>0.058615</td>\n",
|
| 702 |
+
" <td>0.956479</td>\n",
|
| 703 |
+
" <td>0.968291</td>\n",
|
| 704 |
+
" <td>0.962349</td>\n",
|
| 705 |
+
" <td>0.956479</td>\n",
|
| 706 |
+
" </tr>\n",
|
| 707 |
+
" <tr>\n",
|
| 708 |
+
" <td>2</td>\n",
|
| 709 |
+
" <td>0.029700</td>\n",
|
| 710 |
+
" <td>0.015070</td>\n",
|
| 711 |
+
" <td>0.993336</td>\n",
|
| 712 |
+
" <td>0.994993</td>\n",
|
| 713 |
+
" <td>0.994164</td>\n",
|
| 714 |
+
" <td>0.993336</td>\n",
|
| 715 |
+
" </tr>\n",
|
| 716 |
+
" <tr>\n",
|
| 717 |
+
" <td>3</td>\n",
|
| 718 |
+
" <td>0.016100</td>\n",
|
| 719 |
+
" <td>0.010866</td>\n",
|
| 720 |
+
" <td>0.994337</td>\n",
|
| 721 |
+
" <td>0.996328</td>\n",
|
| 722 |
+
" <td>0.995332</td>\n",
|
| 723 |
+
" <td>0.994337</td>\n",
|
| 724 |
+
" </tr>\n",
|
| 725 |
+
" <tr>\n",
|
| 726 |
+
" <td>4</td>\n",
|
| 727 |
+
" <td>0.009300</td>\n",
|
| 728 |
+
" <td>0.009888</td>\n",
|
| 729 |
+
" <td>0.995336</td>\n",
|
| 730 |
+
" <td>0.997330</td>\n",
|
| 731 |
+
" <td>0.996332</td>\n",
|
| 732 |
+
" <td>0.995336</td>\n",
|
| 733 |
+
" </tr>\n",
|
| 734 |
+
" <tr>\n",
|
| 735 |
+
" <td>5</td>\n",
|
| 736 |
+
" <td>0.005500</td>\n",
|
| 737 |
+
" <td>0.009936</td>\n",
|
| 738 |
+
" <td>0.995670</td>\n",
|
| 739 |
+
" <td>0.997664</td>\n",
|
| 740 |
+
" <td>0.996666</td>\n",
|
| 741 |
+
" <td>0.995670</td>\n",
|
| 742 |
+
" </tr>\n",
|
| 743 |
+
" <tr>\n",
|
| 744 |
+
" <td>6</td>\n",
|
| 745 |
+
" <td>0.006200</td>\n",
|
| 746 |
+
" <td>0.008643</td>\n",
|
| 747 |
+
" <td>0.996335</td>\n",
|
| 748 |
+
" <td>0.997997</td>\n",
|
| 749 |
+
" <td>0.997165</td>\n",
|
| 750 |
+
" <td>0.996335</td>\n",
|
| 751 |
+
" </tr>\n",
|
| 752 |
+
" <tr>\n",
|
| 753 |
+
" <td>7</td>\n",
|
| 754 |
+
" <td>0.004200</td>\n",
|
| 755 |
+
" <td>0.008044</td>\n",
|
| 756 |
+
" <td>0.996003</td>\n",
|
| 757 |
+
" <td>0.997997</td>\n",
|
| 758 |
+
" <td>0.996999</td>\n",
|
| 759 |
+
" <td>0.996003</td>\n",
|
| 760 |
+
" </tr>\n",
|
| 761 |
+
" <tr>\n",
|
| 762 |
+
" <td>8</td>\n",
|
| 763 |
+
" <td>0.001400</td>\n",
|
| 764 |
+
" <td>0.008021</td>\n",
|
| 765 |
+
" <td>0.996336</td>\n",
|
| 766 |
+
" <td>0.998331</td>\n",
|
| 767 |
+
" <td>0.997332</td>\n",
|
| 768 |
+
" <td>0.996336</td>\n",
|
| 769 |
+
" </tr>\n",
|
| 770 |
+
" </tbody>\n",
|
| 771 |
+
"</table><p>"
|
| 772 |
+
]
|
| 773 |
+
},
|
| 774 |
+
"metadata": {}
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"output_type": "stream",
|
| 778 |
+
"name": "stdout",
|
| 779 |
+
"text": [
|
| 780 |
+
"✓ Training complete! Best model saved to: /content/drive/MyDrive/durable_invoices_dataset_v9_fixed_finalrun/layout-aware-invoice-ner-model-final/best_model\n",
|
| 781 |
+
"\n",
|
| 782 |
+
"--- RUNNING A QUICK INFERENCE EXAMPLE ---\n",
|
| 783 |
+
"Running model prediction...\n"
|
| 784 |
+
]
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"output_type": "error",
|
| 788 |
+
"ename": "RuntimeError",
|
| 789 |
+
"evalue": "Expected all tensors to be on the same device, but got index is on cpu, different from other tensors on cuda:0 (when checking argument in method wrapper_CUDA__index_select)",
|
| 790 |
+
"traceback": [
|
| 791 |
+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 792 |
+
"\u001b[0;31mRuntimeError\u001b[0m Traceback (most recent call last)",
|
| 793 |
+
"\u001b[0;32m/tmp/ipython-input-4013341825.py\u001b[0m in \u001b[0;36m<cell line: 0>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 197\u001b[0m \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Running model prediction...\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 198\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mtorch\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mno_grad\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 199\u001b[0;31m \u001b[0moutputs\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mmodel\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m**\u001b[0m\u001b[0minputs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 200\u001b[0m \u001b[0mpredictions\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mtorch\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0margmax\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0moutputs\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mlogits\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdim\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 201\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 794 |
+
"\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/nn/modules/module.py\u001b[0m in \u001b[0;36m_wrapped_call_impl\u001b[0;34m(self, *args, **kwargs)\u001b[0m\n\u001b[1;32m 1771\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_compiled_call_impl\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;31m# type: ignore[misc]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1772\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1773\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_call_impl\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1774\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1775\u001b[0m \u001b[0;31m# torchrec tests the code consistency with the following code\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 795 |
+
"\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/nn/modules/module.py\u001b[0m in \u001b[0;36m_call_impl\u001b[0;34m(self, *args, **kwargs)\u001b[0m\n\u001b[1;32m 1782\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0m_global_backward_pre_hooks\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0m_global_backward_hooks\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1783\u001b[0m or _global_forward_hooks or _global_forward_pre_hooks):\n\u001b[0;32m-> 1784\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mforward_call\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1785\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1786\u001b[0m \u001b[0mresult\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 796 |
+
"\u001b[0;32m/content/drive/MyDrive/durable_invoices_dataset_v9_fixed_finalrun/layout_roberta.py\u001b[0m in \u001b[0;36mforward\u001b[0;34m(self, input_ids, bbox, attention_mask, token_type_ids, position_ids, head_mask, inputs_embeds, labels, output_attentions, output_hidden_states, return_dict)\u001b[0m\n\u001b[1;32m 171\u001b[0m ):\n\u001b[1;32m 172\u001b[0m \u001b[0;31m# Call the forward pass of our custom LayoutRobertaModel\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 173\u001b[0;31m outputs = self.roberta(\n\u001b[0m\u001b[1;32m 174\u001b[0m \u001b[0minput_ids\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 175\u001b[0m \u001b[0mbbox\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mbbox\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 797 |
+
"\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/nn/modules/module.py\u001b[0m in \u001b[0;36m_wrapped_call_impl\u001b[0;34m(self, *args, **kwargs)\u001b[0m\n\u001b[1;32m 1771\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_compiled_call_impl\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;31m# type: ignore[misc]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1772\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1773\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_call_impl\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1774\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1775\u001b[0m \u001b[0;31m# torchrec tests the code consistency with the following code\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 798 |
+
"\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/nn/modules/module.py\u001b[0m in \u001b[0;36m_call_impl\u001b[0;34m(self, *args, **kwargs)\u001b[0m\n\u001b[1;32m 1782\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0m_global_backward_pre_hooks\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0m_global_backward_hooks\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1783\u001b[0m or _global_forward_hooks or _global_forward_pre_hooks):\n\u001b[0;32m-> 1784\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mforward_call\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1785\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1786\u001b[0m \u001b[0mresult\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 799 |
+
"\u001b[0;32m/content/drive/MyDrive/durable_invoices_dataset_v9_fixed_finalrun/layout_roberta.py\u001b[0m in \u001b[0;36mforward\u001b[0;34m(self, input_ids, bbox, attention_mask, token_type_ids, position_ids, head_mask, inputs_embeds, output_attentions, output_hidden_states, return_dict)\u001b[0m\n\u001b[1;32m 101\u001b[0m \u001b[0;31m# Generate embeddings using our custom embedding layer\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 102\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0minputs_embeds\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 103\u001b[0;31m embedding_output = self.embeddings(\n\u001b[0m\u001b[1;32m 104\u001b[0m \u001b[0minput_ids\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0minput_ids\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 105\u001b[0m \u001b[0mbbox\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mbbox\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 800 |
+
"\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/nn/modules/module.py\u001b[0m in \u001b[0;36m_wrapped_call_impl\u001b[0;34m(self, *args, **kwargs)\u001b[0m\n\u001b[1;32m 1771\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_compiled_call_impl\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;31m# type: ignore[misc]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1772\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1773\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_call_impl\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1774\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1775\u001b[0m \u001b[0;31m# torchrec tests the code consistency with the following code\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 801 |
+
"\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/nn/modules/module.py\u001b[0m in \u001b[0;36m_call_impl\u001b[0;34m(self, *args, **kwargs)\u001b[0m\n\u001b[1;32m 1782\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0m_global_backward_pre_hooks\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0m_global_backward_hooks\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1783\u001b[0m or _global_forward_hooks or _global_forward_pre_hooks):\n\u001b[0;32m-> 1784\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mforward_call\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1785\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1786\u001b[0m \u001b[0mresult\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 802 |
+
"\u001b[0;32m/content/drive/MyDrive/durable_invoices_dataset_v9_fixed_finalrun/layout_roberta.py\u001b[0m in \u001b[0;36mforward\u001b[0;34m(self, input_ids, bbox, token_type_ids, position_ids)\u001b[0m\n\u001b[1;32m 53\u001b[0m \u001b[0;31m# --- Get Embeddings ---\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 54\u001b[0m \u001b[0;31m# 1. Word embeddings from token IDs\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 55\u001b[0;31m \u001b[0mword_embeds\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mword_embeddings\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0minput_ids\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 56\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 57\u001b[0m \u001b[0;31m# 2. 1D Position embeddings\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 803 |
+
"\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/nn/modules/module.py\u001b[0m in \u001b[0;36m_wrapped_call_impl\u001b[0;34m(self, *args, **kwargs)\u001b[0m\n\u001b[1;32m 1771\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_compiled_call_impl\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;31m# type: ignore[misc]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1772\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1773\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_call_impl\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1774\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1775\u001b[0m \u001b[0;31m# torchrec tests the code consistency with the following code\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 804 |
+
"\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/nn/modules/module.py\u001b[0m in \u001b[0;36m_call_impl\u001b[0;34m(self, *args, **kwargs)\u001b[0m\n\u001b[1;32m 1782\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0m_global_backward_pre_hooks\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0m_global_backward_hooks\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1783\u001b[0m or _global_forward_hooks or _global_forward_pre_hooks):\n\u001b[0;32m-> 1784\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mforward_call\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1785\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1786\u001b[0m \u001b[0mresult\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 805 |
+
"\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/nn/modules/sparse.py\u001b[0m in \u001b[0;36mforward\u001b[0;34m(self, input)\u001b[0m\n\u001b[1;32m 190\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 191\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mforward\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0minput\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mTensor\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m->\u001b[0m \u001b[0mTensor\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 192\u001b[0;31m return F.embedding(\n\u001b[0m\u001b[1;32m 193\u001b[0m \u001b[0minput\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 194\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mweight\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 806 |
+
"\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/nn/functional.py\u001b[0m in \u001b[0;36membedding\u001b[0;34m(input, weight, padding_idx, max_norm, norm_type, scale_grad_by_freq, sparse)\u001b[0m\n\u001b[1;32m 2544\u001b[0m \u001b[0;31m# remove once script supports set_grad_enabled\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2545\u001b[0m \u001b[0m_no_grad_embedding_renorm_\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mweight\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0minput\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmax_norm\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mnorm_type\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 2546\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mtorch\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0membedding\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mweight\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0minput\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mpadding_idx\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mscale_grad_by_freq\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msparse\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2547\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2548\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
|
| 807 |
+
"\u001b[0;31mRuntimeError\u001b[0m: Expected all tensors to be on the same device, but got index is on cpu, different from other tensors on cuda:0 (when checking argument in method wrapper_CUDA__index_select)"
|
| 808 |
+
]
|
| 809 |
+
}
|
| 810 |
+
]
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"cell_type": "code",
|
| 814 |
+
"source": [
|
| 815 |
+
"# ===================================================================\n",
|
| 816 |
+
"# 5. INFERENCE EXAMPLE\n",
|
| 817 |
+
"# ===================================================================\n",
|
| 818 |
+
"print(\"\\n--- RUNNING A QUICK INFERENCE EXAMPLE ---\")\n",
|
| 819 |
+
"\n",
|
| 820 |
+
"# Get the device the model is on\n",
|
| 821 |
+
"device = model.device\n",
|
| 822 |
+
"\n",
|
| 823 |
+
"# Get an example from the evaluation dataset\n",
|
| 824 |
+
"example = eval_dataset[0]\n",
|
| 825 |
+
"words = tokenizer.convert_ids_to_tokens(example['input_ids'])\n",
|
| 826 |
+
"bboxes = example['bbox']\n",
|
| 827 |
+
"\n",
|
| 828 |
+
"# Manually prepare inputs and move them to the same device as the model\n",
|
| 829 |
+
"inputs = {\n",
|
| 830 |
+
" \"input_ids\": torch.tensor([example['input_ids']]).to(device),\n",
|
| 831 |
+
" \"attention_mask\": torch.tensor([example['attention_mask']]).to(device),\n",
|
| 832 |
+
" \"bbox\": torch.tensor([example['bbox']]).to(device),\n",
|
| 833 |
+
" \"return_dict\": True # Force return_dict to True\n",
|
| 834 |
+
"}\n",
|
| 835 |
+
"\n",
|
| 836 |
+
"print(\"Running model prediction...\")\n",
|
| 837 |
+
"model.eval() # Set model to evaluation mode\n",
|
| 838 |
+
"with torch.no_grad():\n",
|
| 839 |
+
" outputs = model(**inputs)\n",
|
| 840 |
+
" # Handle both tuple and dict outputs\n",
|
| 841 |
+
" if isinstance(outputs, tuple):\n",
|
| 842 |
+
" logits = outputs[0] # First element is logits\n",
|
| 843 |
+
" else:\n",
|
| 844 |
+
" logits = outputs.logits\n",
|
| 845 |
+
" predictions = torch.argmax(logits, dim=2)\n",
|
| 846 |
+
"\n",
|
| 847 |
+
"print(\"\\n--- PARSED ENTITIES (EXAMPLE) ---\")\n",
|
| 848 |
+
"predicted_labels = predictions[0].cpu().tolist() # Move predictions back to CPU\n",
|
| 849 |
+
"true_labels = example['labels']\n",
|
| 850 |
+
"\n",
|
| 851 |
+
"for token, pred_id, true_label_id in zip(words, predicted_labels, true_labels):\n",
|
| 852 |
+
" if token not in [tokenizer.bos_token, tokenizer.eos_token, tokenizer.pad_token]:\n",
|
| 853 |
+
" if true_label_id != -100: # Skip padding tokens\n",
|
| 854 |
+
" predicted_label = id2tag[pred_id]\n",
|
| 855 |
+
" true_label = id2tag[true_label_id]\n",
|
| 856 |
+
" match = \"✓\" if predicted_label == true_label else \"✗\"\n",
|
| 857 |
+
" if predicted_label != 'O' or true_label != 'O': # Only show non-O tags\n",
|
| 858 |
+
" print(f\"{match} Token: {token:15s} | Predicted: {predicted_label:20s} | True: {true_label}\")\n",
|
| 859 |
+
"\n",
|
| 860 |
+
"print(\"\\n✓ Inference example complete!\")"
|
| 861 |
+
],
|
| 862 |
+
"metadata": {
|
| 863 |
+
"colab": {
|
| 864 |
+
"base_uri": "https://localhost:8080/"
|
| 865 |
+
},
|
| 866 |
+
"id": "Vtnhqy0n4ZcJ",
|
| 867 |
+
"outputId": "089d8d3e-f2e1-4881-d668-9672240f2913"
|
| 868 |
+
},
|
| 869 |
+
"execution_count": null,
|
| 870 |
+
"outputs": [
|
| 871 |
+
{
|
| 872 |
+
"output_type": "stream",
|
| 873 |
+
"name": "stdout",
|
| 874 |
+
"text": [
|
| 875 |
+
"\n",
|
| 876 |
+
"--- RUNNING A QUICK INFERENCE EXAMPLE ---\n",
|
| 877 |
+
"Running model prediction...\n",
|
| 878 |
+
"\n",
|
| 879 |
+
"--- PARSED ENTITIES (EXAMPLE) ---\n",
|
| 880 |
+
"✓ Token: Ġ25 | Predicted: B-INV_NO | True: B-INV_NO\n",
|
| 881 |
+
"✓ Token: ĠS | Predicted: B-SELLER_NAME | True: B-SELLER_NAME\n",
|
| 882 |
+
"✓ Token: ĠELECT | Predicted: I-SELLER_NAME | True: I-SELLER_NAME\n",
|
| 883 |
+
"✓ Token: Ġ16 | Predicted: B-DATE | True: B-DATE\n",
|
| 884 |
+
"✓ Token: Ġ05 | Predicted: B-SELLER_ADDR | True: B-SELLER_ADDR\n",
|
| 885 |
+
"✓ Token: ĠMoh | Predicted: I-SELLER_ADDR | True: I-SELLER_ADDR\n",
|
| 886 |
+
"✓ Token: ĠRoad | Predicted: I-SELLER_ADDR | True: I-SELLER_ADDR\n",
|
| 887 |
+
"✓ Token: ĠHaj | Predicted: I-SELLER_ADDR | True: I-SELLER_ADDR\n",
|
| 888 |
+
"✓ Token: Ġ06 | Predicted: B-SELLER_TAX_ID | True: B-SELLER_TAX_ID\n",
|
| 889 |
+
"✓ Token: ĠR | Predicted: B-CLIENT_NAME | True: B-CLIENT_NAME\n",
|
| 890 |
+
"✓ Token: ĠNAD | Predicted: I-CLIENT_NAME | True: I-CLIENT_NAME\n",
|
| 891 |
+
"✓ Token: ĠH | Predicted: B-CLIENT_ADDR | True: B-CLIENT_ADDR\n",
|
| 892 |
+
"✓ Token: Ġ7 | Predicted: I-CLIENT_ADDR | True: I-CLIENT_ADDR\n",
|
| 893 |
+
"✓ Token: ĠBo | Predicted: I-CLIENT_ADDR | True: I-CLIENT_ADDR\n",
|
| 894 |
+
"✓ Token: ĠNag | Predicted: I-CLIENT_ADDR | True: I-CLIENT_ADDR\n",
|
| 895 |
+
"✓ Token: ĠBh | Predicted: I-CLIENT_ADDR | True: I-CLIENT_ADDR\n",
|
| 896 |
+
"✓ Token: Ġ6 | Predicted: B-CLIENT_PHONE | True: B-CLIENT_PHONE\n",
|
| 897 |
+
"✓ Token: Ġ31 | Predicted: B-CLIENT_TAX_ID | True: B-CLIENT_TAX_ID\n",
|
| 898 |
+
"✓ Token: ĠB | Predicted: B-ITEM_DESC | True: B-ITEM_DESC\n",
|
| 899 |
+
"✓ Token: ĠSpeaker | Predicted: I-ITEM_DESC | True: I-ITEM_DESC\n",
|
| 900 |
+
"✓ Token: ĠModel | Predicted: I-ITEM_DESC | True: I-ITEM_DESC\n",
|
| 901 |
+
"✓ Token: ĠB | Predicted: I-ITEM_DESC | True: I-ITEM_DESC\n",
|
| 902 |
+
"✓ Token: Ġ85 | Predicted: B-ITEM_HSN | True: B-ITEM_HSN\n",
|
| 903 |
+
"✓ Token: Ġ2 | Predicted: B-ITEM_QTY | True: B-ITEM_QTY\n",
|
| 904 |
+
"✓ Token: Ġ50 | Predicted: B-ITEM_PRICE | True: B-ITEM_PRICE\n",
|
| 905 |
+
"✓ Token: Ġ100 | Predicted: B-ITEM_AMOUNT | True: B-ITEM_AMOUNT\n",
|
| 906 |
+
"✓ Token: ĠTV | Predicted: B-ITEM_DESC | True: B-ITEM_DESC\n",
|
| 907 |
+
"✓ Token: ĠBike | Predicted: I-ITEM_DESC | True: I-ITEM_DESC\n",
|
| 908 |
+
"✓ Token: Ġ2 | Predicted: B-ITEM_QTY | True: B-ITEM_QTY\n",
|
| 909 |
+
"✓ Token: ĠModel | Predicted: I-ITEM_DESC | True: I-ITEM_DESC\n",
|
| 910 |
+
"✓ Token: ĠTV | Predicted: I-ITEM_DESC | True: I-ITEM_DESC\n",
|
| 911 |
+
"✓ Token: Ġ87 | Predicted: B-ITEM_HSN | True: B-ITEM_HSN\n",
|
| 912 |
+
"✓ Token: Ġ1 | Predicted: B-ITEM_QTY | True: B-ITEM_QTY\n",
|
| 913 |
+
"✓ Token: Ġ66 | Predicted: B-ITEM_PRICE | True: B-ITEM_PRICE\n",
|
| 914 |
+
"✓ Token: Ġ66 | Predicted: B-ITEM_PRICE | True: B-ITEM_PRICE\n",
|
| 915 |
+
"✓ Token: ĠNikon | Predicted: B-ITEM_DESC | True: B-ITEM_DESC\n",
|
| 916 |
+
"✓ Token: ĠCamera | Predicted: I-ITEM_DESC | True: I-ITEM_DESC\n",
|
| 917 |
+
"✓ Token: ĠModel | Predicted: I-ITEM_DESC | True: I-ITEM_DESC\n",
|
| 918 |
+
"✓ Token: ĠN | Predicted: I-ITEM_DESC | True: I-ITEM_DESC\n",
|
| 919 |
+
"✓ Token: Ġ85 | Predicted: B-ITEM_HSN | True: B-ITEM_HSN\n",
|
| 920 |
+
"✓ Token: Ġ1 | Predicted: B-ITEM_QTY | True: B-ITEM_QTY\n",
|
| 921 |
+
"✓ Token: Ġ60 | Predicted: B-ITEM_PRICE | True: B-ITEM_PRICE\n",
|
| 922 |
+
"✓ Token: Ġ60 | Predicted: B-ITEM_PRICE | True: B-ITEM_PRICE\n",
|
| 923 |
+
"✓ Token: Ġ227 | Predicted: B-SUBTOTAL | True: B-SUBTOTAL\n",
|
| 924 |
+
"✓ Token: Ġ13 | Predicted: B-CGST | True: B-CGST\n",
|
| 925 |
+
"✓ Token: Ġ13 | Predicted: B-CGST | True: B-CGST\n",
|
| 926 |
+
"✓ Token: Ġ255 | Predicted: B-TOTAL | True: B-TOTAL\n",
|
| 927 |
+
"\n",
|
| 928 |
+
"✓ Inference example complete!\n"
|
| 929 |
+
]
|
| 930 |
+
}
|
| 931 |
+
]
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"cell_type": "code",
|
| 935 |
+
"source": [
|
| 936 |
+
"!pip install paddlepaddle-gpu==2.6.2 paddleocr==2.10.0"
|
| 937 |
+
],
|
| 938 |
+
"metadata": {
|
| 939 |
+
"colab": {
|
| 940 |
+
"base_uri": "https://localhost:8080/"
|
| 941 |
+
},
|
| 942 |
+
"id": "8neo7QNT-Su1",
|
| 943 |
+
"outputId": "1c7b0cf5-48fe-4986-b4af-deff9d0b01bf"
|
| 944 |
+
},
|
| 945 |
+
"execution_count": 2,
|
| 946 |
+
"outputs": [
|
| 947 |
+
{
|
| 948 |
+
"output_type": "stream",
|
| 949 |
+
"name": "stdout",
|
| 950 |
+
"text": [
|
| 951 |
+
"Collecting paddlepaddle-gpu==2.6.2\n",
|
| 952 |
+
" Downloading paddlepaddle_gpu-2.6.2-cp312-cp312-manylinux1_x86_64.whl.metadata (8.6 kB)\n",
|
| 953 |
+
"Collecting paddleocr==2.10.0\n",
|
| 954 |
+
" Downloading paddleocr-2.10.0-py3-none-any.whl.metadata (12 kB)\n",
|
| 955 |
+
"Requirement already satisfied: httpx in /usr/local/lib/python3.12/dist-packages (from paddlepaddle-gpu==2.6.2) (0.28.1)\n",
|
| 956 |
+
"Requirement already satisfied: numpy>=1.13 in /usr/local/lib/python3.12/dist-packages (from paddlepaddle-gpu==2.6.2) (2.0.2)\n",
|
| 957 |
+
"Requirement already satisfied: Pillow in /usr/local/lib/python3.12/dist-packages (from paddlepaddle-gpu==2.6.2) (11.3.0)\n",
|
| 958 |
+
"Requirement already satisfied: decorator in /usr/local/lib/python3.12/dist-packages (from paddlepaddle-gpu==2.6.2) (4.4.2)\n",
|
| 959 |
+
"Collecting astor (from paddlepaddle-gpu==2.6.2)\n",
|
| 960 |
+
" Downloading astor-0.8.1-py2.py3-none-any.whl.metadata (4.2 kB)\n",
|
| 961 |
+
"Collecting opt-einsum==3.3.0 (from paddlepaddle-gpu==2.6.2)\n",
|
| 962 |
+
" Downloading opt_einsum-3.3.0-py3-none-any.whl.metadata (6.5 kB)\n",
|
| 963 |
+
"Requirement already satisfied: protobuf>=3.20.2 in /usr/local/lib/python3.12/dist-packages (from paddlepaddle-gpu==2.6.2) (5.29.5)\n",
|
| 964 |
+
"Requirement already satisfied: shapely in /usr/local/lib/python3.12/dist-packages (from paddleocr==2.10.0) (2.1.2)\n",
|
| 965 |
+
"Requirement already satisfied: scikit-image in /usr/local/lib/python3.12/dist-packages (from paddleocr==2.10.0) (0.25.2)\n",
|
| 966 |
+
"Collecting pyclipper (from paddleocr==2.10.0)\n",
|
| 967 |
+
" Downloading pyclipper-1.3.0.post6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.0 kB)\n",
|
| 968 |
+
"Collecting lmdb (from paddleocr==2.10.0)\n",
|
| 969 |
+
" Downloading lmdb-1.7.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (1.4 kB)\n",
|
| 970 |
+
"Requirement already satisfied: tqdm in /usr/local/lib/python3.12/dist-packages (from paddleocr==2.10.0) (4.67.1)\n",
|
| 971 |
+
"Collecting rapidfuzz (from paddleocr==2.10.0)\n",
|
| 972 |
+
" Downloading rapidfuzz-3.14.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (12 kB)\n",
|
| 973 |
+
"Requirement already satisfied: opencv-python in /usr/local/lib/python3.12/dist-packages (from paddleocr==2.10.0) (4.12.0.88)\n",
|
| 974 |
+
"Requirement already satisfied: opencv-contrib-python in /usr/local/lib/python3.12/dist-packages (from paddleocr==2.10.0) (4.12.0.88)\n",
|
| 975 |
+
"Requirement already satisfied: cython in /usr/local/lib/python3.12/dist-packages (from paddleocr==2.10.0) (3.0.12)\n",
|
| 976 |
+
"Requirement already satisfied: pyyaml in /usr/local/lib/python3.12/dist-packages (from paddleocr==2.10.0) (6.0.3)\n",
|
| 977 |
+
"Collecting python-docx (from paddleocr==2.10.0)\n",
|
| 978 |
+
" Downloading python_docx-1.2.0-py3-none-any.whl.metadata (2.0 kB)\n",
|
| 979 |
+
"Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.12/dist-packages (from paddleocr==2.10.0) (4.13.5)\n",
|
| 980 |
+
"Requirement already satisfied: fonttools>=4.24.0 in /usr/local/lib/python3.12/dist-packages (from paddleocr==2.10.0) (4.60.1)\n",
|
| 981 |
+
"Collecting fire>=0.3.0 (from paddleocr==2.10.0)\n",
|
| 982 |
+
" Downloading fire-0.7.1-py3-none-any.whl.metadata (5.8 kB)\n",
|
| 983 |
+
"Requirement already satisfied: requests in /usr/local/lib/python3.12/dist-packages (from paddleocr==2.10.0) (2.32.4)\n",
|
| 984 |
+
"Requirement already satisfied: albumentations in /usr/local/lib/python3.12/dist-packages (from paddleocr==2.10.0) (2.0.8)\n",
|
| 985 |
+
"Requirement already satisfied: albucore in /usr/local/lib/python3.12/dist-packages (from paddleocr==2.10.0) (0.0.24)\n",
|
| 986 |
+
"Requirement already satisfied: termcolor in /usr/local/lib/python3.12/dist-packages (from fire>=0.3.0->paddleocr==2.10.0) (3.2.0)\n",
|
| 987 |
+
"Requirement already satisfied: stringzilla>=3.10.4 in /usr/local/lib/python3.12/dist-packages (from albucore->paddleocr==2.10.0) (4.2.3)\n",
|
| 988 |
+
"Requirement already satisfied: simsimd>=5.9.2 in /usr/local/lib/python3.12/dist-packages (from albucore->paddleocr==2.10.0) (6.5.3)\n",
|
| 989 |
+
"Requirement already satisfied: opencv-python-headless>=4.9.0.80 in /usr/local/lib/python3.12/dist-packages (from albucore->paddleocr==2.10.0) (4.12.0.88)\n",
|
| 990 |
+
"Requirement already satisfied: scipy>=1.10.0 in /usr/local/lib/python3.12/dist-packages (from albumentations->paddleocr==2.10.0) (1.16.3)\n",
|
| 991 |
+
"Requirement already satisfied: pydantic>=2.9.2 in /usr/local/lib/python3.12/dist-packages (from albumentations->paddleocr==2.10.0) (2.11.10)\n",
|
| 992 |
+
"Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.12/dist-packages (from beautifulsoup4->paddleocr==2.10.0) (2.8)\n",
|
| 993 |
+
"Requirement already satisfied: typing-extensions>=4.0.0 in /usr/local/lib/python3.12/dist-packages (from beautifulsoup4->paddleocr==2.10.0) (4.15.0)\n",
|
| 994 |
+
"Requirement already satisfied: anyio in /usr/local/lib/python3.12/dist-packages (from httpx->paddlepaddle-gpu==2.6.2) (4.11.0)\n",
|
| 995 |
+
"Requirement already satisfied: certifi in /usr/local/lib/python3.12/dist-packages (from httpx->paddlepaddle-gpu==2.6.2) (2025.10.5)\n",
|
| 996 |
+
"Requirement already satisfied: httpcore==1.* in /usr/local/lib/python3.12/dist-packages (from httpx->paddlepaddle-gpu==2.6.2) (1.0.9)\n",
|
| 997 |
+
"Requirement already satisfied: idna in /usr/local/lib/python3.12/dist-packages (from httpx->paddlepaddle-gpu==2.6.2) (3.11)\n",
|
| 998 |
+
"Requirement already satisfied: h11>=0.16 in /usr/local/lib/python3.12/dist-packages (from httpcore==1.*->httpx->paddlepaddle-gpu==2.6.2) (0.16.0)\n",
|
| 999 |
+
"Requirement already satisfied: lxml>=3.1.0 in /usr/local/lib/python3.12/dist-packages (from python-docx->paddleocr==2.10.0) (5.4.0)\n",
|
| 1000 |
+
"Requirement already satisfied: charset_normalizer<4,>=2 in /usr/local/lib/python3.12/dist-packages (from requests->paddleocr==2.10.0) (3.4.4)\n",
|
| 1001 |
+
"Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.12/dist-packages (from requests->paddleocr==2.10.0) (2.5.0)\n",
|
| 1002 |
+
"Requirement already satisfied: networkx>=3.0 in /usr/local/lib/python3.12/dist-packages (from scikit-image->paddleocr==2.10.0) (3.5)\n",
|
| 1003 |
+
"Requirement already satisfied: imageio!=2.35.0,>=2.33 in /usr/local/lib/python3.12/dist-packages (from scikit-image->paddleocr==2.10.0) (2.37.0)\n",
|
| 1004 |
+
"Requirement already satisfied: tifffile>=2022.8.12 in /usr/local/lib/python3.12/dist-packages (from scikit-image->paddleocr==2.10.0) (2025.10.16)\n",
|
| 1005 |
+
"Requirement already satisfied: packaging>=21 in /usr/local/lib/python3.12/dist-packages (from scikit-image->paddleocr==2.10.0) (25.0)\n",
|
| 1006 |
+
"Requirement already satisfied: lazy-loader>=0.4 in /usr/local/lib/python3.12/dist-packages (from scikit-image->paddleocr==2.10.0) (0.4)\n",
|
| 1007 |
+
"Requirement already satisfied: annotated-types>=0.6.0 in /usr/local/lib/python3.12/dist-packages (from pydantic>=2.9.2->albumentations->paddleocr==2.10.0) (0.7.0)\n",
|
| 1008 |
+
"Requirement already satisfied: pydantic-core==2.33.2 in /usr/local/lib/python3.12/dist-packages (from pydantic>=2.9.2->albumentations->paddleocr==2.10.0) (2.33.2)\n",
|
| 1009 |
+
"Requirement already satisfied: typing-inspection>=0.4.0 in /usr/local/lib/python3.12/dist-packages (from pydantic>=2.9.2->albumentations->paddleocr==2.10.0) (0.4.2)\n",
|
| 1010 |
+
"Requirement already satisfied: sniffio>=1.1 in /usr/local/lib/python3.12/dist-packages (from anyio->httpx->paddlepaddle-gpu==2.6.2) (1.3.1)\n",
|
| 1011 |
+
"Downloading paddlepaddle_gpu-2.6.2-cp312-cp312-manylinux1_x86_64.whl (758.9 MB)\n",
|
| 1012 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m758.9/758.9 MB\u001b[0m \u001b[31m603.1 kB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 1013 |
+
"\u001b[?25hDownloading paddleocr-2.10.0-py3-none-any.whl (2.4 MB)\n",
|
| 1014 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.4/2.4 MB\u001b[0m \u001b[31m92.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 1015 |
+
"\u001b[?25hDownloading opt_einsum-3.3.0-py3-none-any.whl (65 kB)\n",
|
| 1016 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m65.5/65.5 kB\u001b[0m \u001b[31m8.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 1017 |
+
"\u001b[?25hDownloading fire-0.7.1-py3-none-any.whl (115 kB)\n",
|
| 1018 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m115.9/115.9 kB\u001b[0m \u001b[31m14.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 1019 |
+
"\u001b[?25hDownloading astor-0.8.1-py2.py3-none-any.whl (27 kB)\n",
|
| 1020 |
+
"Downloading lmdb-1.7.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (299 kB)\n",
|
| 1021 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m299.4/299.4 kB\u001b[0m \u001b[31m28.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 1022 |
+
"\u001b[?25hDownloading pyclipper-1.3.0.post6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (963 kB)\n",
|
| 1023 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m963.8/963.8 kB\u001b[0m \u001b[31m68.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 1024 |
+
"\u001b[?25hDownloading python_docx-1.2.0-py3-none-any.whl (252 kB)\n",
|
| 1025 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m253.0/253.0 kB\u001b[0m \u001b[31m28.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 1026 |
+
"\u001b[?25hDownloading rapidfuzz-3.14.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (3.2 MB)\n",
|
| 1027 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m3.2/3.2 MB\u001b[0m \u001b[31m101.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 1028 |
+
"\u001b[?25hInstalling collected packages: pyclipper, lmdb, rapidfuzz, python-docx, opt-einsum, fire, astor, paddlepaddle-gpu, paddleocr\n",
|
| 1029 |
+
" Attempting uninstall: opt-einsum\n",
|
| 1030 |
+
" Found existing installation: opt_einsum 3.4.0\n",
|
| 1031 |
+
" Uninstalling opt_einsum-3.4.0:\n",
|
| 1032 |
+
" Successfully uninstalled opt_einsum-3.4.0\n",
|
| 1033 |
+
"Successfully installed astor-0.8.1 fire-0.7.1 lmdb-1.7.5 opt-einsum-3.3.0 paddleocr-2.10.0 paddlepaddle-gpu-2.6.2 pyclipper-1.3.0.post6 python-docx-1.2.0 rapidfuzz-3.14.3\n"
|
| 1034 |
+
]
|
| 1035 |
+
}
|
| 1036 |
+
]
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"cell_type": "code",
|
| 1040 |
+
"source": [
|
| 1041 |
+
"import os\n",
|
| 1042 |
+
"import json\n",
|
| 1043 |
+
"import re\n",
|
| 1044 |
+
"import torch\n",
|
| 1045 |
+
"import numpy as np\n",
|
| 1046 |
+
"from PIL import Image\n",
|
| 1047 |
+
"from transformers import AutoTokenizer\n",
|
| 1048 |
+
"from paddleocr import PaddleOCR\n",
|
| 1049 |
+
"from collections import defaultdict\n",
|
| 1050 |
+
"import cv2\n",
|
| 1051 |
+
"\n",
|
| 1052 |
+
"from layout_roberta import LayoutRobertaForTokenClassification, RobertaConfig\n",
|
| 1053 |
+
"\n",
|
| 1054 |
+
"\n",
|
| 1055 |
+
"class InferenceConfig:\n",
|
| 1056 |
+
" MODEL_PATH = r\"/content/drive/MyDrive/durable_invoices_dataset_v9_fixed_finalrun/layout-aware-invoice-ner-model-final/best_model\"\n",
|
| 1057 |
+
"\n",
|
| 1058 |
+
" # Path to the new invoice image you want to process\n",
|
| 1059 |
+
" IMAGE_PATH = r\"/content/original-scanned.jpg\" # Confidence threshold for NER predictions\n",
|
| 1060 |
+
" SCORE_THRESHOLD = 0.85\n",
|
| 1061 |
+
"\n",
|
| 1062 |
+
"# ===================================================================\n",
|
| 1063 |
+
"# 2. HELPER FUNCTIONS (OCR & Post-Processing)\n",
|
| 1064 |
+
"# ===================================================================\n",
|
| 1065 |
+
"\n",
|
| 1066 |
+
"def run_ocr_on_image(image_path: str, ocr_engine: PaddleOCR) -> (list, list, tuple):\n",
|
| 1067 |
+
" \"\"\"\n",
|
| 1068 |
+
" Performs OCR on an image and returns words, normalized bboxes, and image dimensions.\n",
|
| 1069 |
+
" \"\"\"\n",
|
| 1070 |
+
" if not os.path.exists(image_path):\n",
|
| 1071 |
+
" raise FileNotFoundError(f\"Image not found at path: {image_path}\")\n",
|
| 1072 |
+
"\n",
|
| 1073 |
+
" words = []\n",
|
| 1074 |
+
" bboxes = []\n",
|
| 1075 |
+
" try:\n",
|
| 1076 |
+
" img = cv2.imread(image_path)\n",
|
| 1077 |
+
" if img is None:\n",
|
| 1078 |
+
" raise IOError(\"Could not read image with OpenCV.\")\n",
|
| 1079 |
+
" img_height, img_width = img.shape[:2]\n",
|
| 1080 |
+
"\n",
|
| 1081 |
+
" result = ocr_engine.ocr(img, cls=True)\n",
|
| 1082 |
+
" if not result or not result[0]:\n",
|
| 1083 |
+
" print(\"Warning: OCR did not detect any text.\")\n",
|
| 1084 |
+
" return [], [], (img_width, img_height)\n",
|
| 1085 |
+
"\n",
|
| 1086 |
+
" for line in result[0]:\n",
|
| 1087 |
+
" bbox_points, (text, confidence) = line\n",
|
| 1088 |
+
" if confidence < 0.5:\n",
|
| 1089 |
+
" continue\n",
|
| 1090 |
+
"\n",
|
| 1091 |
+
" text_words = text.split()\n",
|
| 1092 |
+
" if not text_words:\n",
|
| 1093 |
+
" continue\n",
|
| 1094 |
+
"\n",
|
| 1095 |
+
" xs = [p[0] for p in bbox_points]\n",
|
| 1096 |
+
" ys = [p[1] for p in bbox_points]\n",
|
| 1097 |
+
" x0, x1 = min(xs), max(xs)\n",
|
| 1098 |
+
" y0, y1 = min(ys), max(ys)\n",
|
| 1099 |
+
"\n",
|
| 1100 |
+
" line_width = x1 - x0\n",
|
| 1101 |
+
" if len(text_words) > 1 and line_width > 0:\n",
|
| 1102 |
+
" word_width_avg = line_width / len(text_words)\n",
|
| 1103 |
+
" for idx, word in enumerate(text_words):\n",
|
| 1104 |
+
" word_x0 = x0 + (idx * word_width_avg)\n",
|
| 1105 |
+
" word_x1 = word_x0 + word_width_avg\n",
|
| 1106 |
+
" norm_bbox = [\n",
|
| 1107 |
+
" int((word_x0 / img_width) * 1000),\n",
|
| 1108 |
+
" int((y0 / img_height) * 1000),\n",
|
| 1109 |
+
" int((word_x1 / img_width) * 1000),\n",
|
| 1110 |
+
" int((y1 / img_height) * 1000)\n",
|
| 1111 |
+
" ]\n",
|
| 1112 |
+
" words.append(word)\n",
|
| 1113 |
+
" bboxes.append(norm_bbox)\n",
|
| 1114 |
+
" else:\n",
|
| 1115 |
+
" norm_bbox = [\n",
|
| 1116 |
+
" int((x0 / img_width) * 1000),\n",
|
| 1117 |
+
" int((y0 / img_height) * 1000),\n",
|
| 1118 |
+
" int((x1 / img_width) * 1000),\n",
|
| 1119 |
+
" int((y1 / img_height) * 1000)\n",
|
| 1120 |
+
" ]\n",
|
| 1121 |
+
" words.append(text)\n",
|
| 1122 |
+
" bboxes.append(norm_bbox)\n",
|
| 1123 |
+
"\n",
|
| 1124 |
+
" except Exception as e:\n",
|
| 1125 |
+
" print(f\"An error occurred during OCR processing: {e}\")\n",
|
| 1126 |
+
" return [], [], (0, 0)\n",
|
| 1127 |
+
"\n",
|
| 1128 |
+
" return words, bboxes, (img_width, img_height)\n",
|
| 1129 |
+
"\n",
|
| 1130 |
+
"\n",
|
| 1131 |
+
"def group_and_clean_entities(ner_results: list, score_threshold: float = 0.85) -> dict:\n",
|
| 1132 |
+
" \"\"\"\n",
|
| 1133 |
+
" The definitive post-processing function.\n",
|
| 1134 |
+
" Cleans, groups, and structures raw NER predictions.\n",
|
| 1135 |
+
" \"\"\"\n",
|
| 1136 |
+
" # Step 1: Group B- and I- tags\n",
|
| 1137 |
+
" grouped_by_tag = []\n",
|
| 1138 |
+
" current_entity = None\n",
|
| 1139 |
+
"\n",
|
| 1140 |
+
" for res in ner_results:\n",
|
| 1141 |
+
" if res['score'] < score_threshold:\n",
|
| 1142 |
+
" continue\n",
|
| 1143 |
+
"\n",
|
| 1144 |
+
" tag = res['entity']\n",
|
| 1145 |
+
" word = res['word'].replace('Ġ', ' ').strip()\n",
|
| 1146 |
+
"\n",
|
| 1147 |
+
" if tag.startswith(\"B-\"):\n",
|
| 1148 |
+
" if current_entity:\n",
|
| 1149 |
+
" grouped_by_tag.append(current_entity)\n",
|
| 1150 |
+
" current_entity = {\"entity_group\": tag[2:], \"value\": word}\n",
|
| 1151 |
+
"\n",
|
| 1152 |
+
" elif tag.startswith(\"I-\") and current_entity and tag[2:] == current_entity[\"entity_group\"]:\n",
|
| 1153 |
+
" if word.startswith(' ') or res['word'].startswith('Ġ'):\n",
|
| 1154 |
+
" current_entity[\"value\"] += \" \" + word\n",
|
| 1155 |
+
" else:\n",
|
| 1156 |
+
" current_entity[\"value\"] += word\n",
|
| 1157 |
+
" else:\n",
|
| 1158 |
+
" if current_entity:\n",
|
| 1159 |
+
" grouped_by_tag.append(current_entity)\n",
|
| 1160 |
+
" current_entity = None\n",
|
| 1161 |
+
"\n",
|
| 1162 |
+
" if current_entity:\n",
|
| 1163 |
+
" grouped_by_tag.append(current_entity)\n",
|
| 1164 |
+
"\n",
|
| 1165 |
+
" # Step 2: Aggregate fragments and build the final JSON\n",
|
| 1166 |
+
" aggregated_entities = defaultdict(list)\n",
|
| 1167 |
+
"\n",
|
| 1168 |
+
" for entity in grouped_by_tag:\n",
|
| 1169 |
+
" key = entity['entity_group'].lower()\n",
|
| 1170 |
+
" value = entity['value'].strip().lstrip(':').strip()\n",
|
| 1171 |
+
"\n",
|
| 1172 |
+
" junk_words = [\n",
|
| 1173 |
+
" \"invoice\", \"no\", \"date\", \"bill\", \"to\", \"ship\", \"ph\", \"gstin\",\n",
|
| 1174 |
+
" \"description\", \"hsn\", \"qty\", \"rate\", \"amount\", \"total\",\n",
|
| 1175 |
+
" \"subtotal\", \"#\", \"@\", \"%\", \":\", \"model\"\n",
|
| 1176 |
+
" ]\n",
|
| 1177 |
+
"\n",
|
| 1178 |
+
" if value.lower().strip(': ') in junk_words:\n",
|
| 1179 |
+
" continue\n",
|
| 1180 |
+
"\n",
|
| 1181 |
+
" aggregated_entities[key].append(value)\n",
|
| 1182 |
+
"\n",
|
| 1183 |
+
" final_json = {}\n",
|
| 1184 |
+
" item_lists = {k: v for k, v in aggregated_entities.items() if k.startswith(\"item_\")}\n",
|
| 1185 |
+
"\n",
|
| 1186 |
+
" # Add non-item fields\n",
|
| 1187 |
+
" for key, values in aggregated_entities.items():\n",
|
| 1188 |
+
" if not key.startswith(\"item_\"):\n",
|
| 1189 |
+
" final_json[key] = \" \".join(values)\n",
|
| 1190 |
+
"\n",
|
| 1191 |
+
" # Reconstruct line items\n",
|
| 1192 |
+
" num_items = 0\n",
|
| 1193 |
+
" if item_lists:\n",
|
| 1194 |
+
" try:\n",
|
| 1195 |
+
" num_items = max(len(v) for v in item_lists.values())\n",
|
| 1196 |
+
" except ValueError:\n",
|
| 1197 |
+
" num_items = 0\n",
|
| 1198 |
+
"\n",
|
| 1199 |
+
" items = []\n",
|
| 1200 |
+
" for i in range(num_items):\n",
|
| 1201 |
+
" item = {}\n",
|
| 1202 |
+
" for key, values in item_lists.items():\n",
|
| 1203 |
+
" if i < len(values):\n",
|
| 1204 |
+
" item_key = key.replace(\"item_\", \"\")\n",
|
| 1205 |
+
" item[item_key] = values[i]\n",
|
| 1206 |
+
" if item:\n",
|
| 1207 |
+
" items.append(item)\n",
|
| 1208 |
+
"\n",
|
| 1209 |
+
" if items:\n",
|
| 1210 |
+
" final_json['items'] = items\n",
|
| 1211 |
+
"\n",
|
| 1212 |
+
" return final_json\n",
|
| 1213 |
+
"\n",
|
| 1214 |
+
"\n",
|
| 1215 |
+
"# ===================================================================\n",
|
| 1216 |
+
"# 3. MAIN INFERENCE PIPELINE\n",
|
| 1217 |
+
"# ===================================================================\n",
|
| 1218 |
+
"def main():\n",
|
| 1219 |
+
" config = InferenceConfig()\n",
|
| 1220 |
+
" device = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n",
|
| 1221 |
+
"\n",
|
| 1222 |
+
" # --- Step 1: Initialize OCR and Model ---\n",
|
| 1223 |
+
" print(\"Initializing PaddleOCR engine...\")\n",
|
| 1224 |
+
" ocr_engine = PaddleOCR(use_angle_cls=True, lang='en')\n",
|
| 1225 |
+
"\n",
|
| 1226 |
+
" print(\"Loading fine-tuned Layout-Aware NER model...\")\n",
|
| 1227 |
+
" tokenizer = AutoTokenizer.from_pretrained(config.MODEL_PATH)\n",
|
| 1228 |
+
" model = LayoutRobertaForTokenClassification.from_pretrained(config.MODEL_PATH)\n",
|
| 1229 |
+
" model.to(device)\n",
|
| 1230 |
+
" model.eval()\n",
|
| 1231 |
+
"\n",
|
| 1232 |
+
" # --- Step 2: Run OCR on the new image ---\n",
|
| 1233 |
+
" print(\"\\n--- RUNNING OCR ---\")\n",
|
| 1234 |
+
" words, bboxes, (img_w, img_h) = run_ocr_on_image(config.IMAGE_PATH, ocr_engine)\n",
|
| 1235 |
+
"\n",
|
| 1236 |
+
" if not words:\n",
|
| 1237 |
+
" print(\"Inference aborted as no text was found in the image.\")\n",
|
| 1238 |
+
" return\n",
|
| 1239 |
+
"\n",
|
| 1240 |
+
" print(f\"OCR detected {len(words)} words\")\n",
|
| 1241 |
+
"\n",
|
| 1242 |
+
" # --- Step 3: Preprocess data for the model ---\n",
|
| 1243 |
+
" tokenized_inputs = tokenizer(\n",
|
| 1244 |
+
" words,\n",
|
| 1245 |
+
" is_split_into_words=True,\n",
|
| 1246 |
+
" return_tensors=\"pt\",\n",
|
| 1247 |
+
" padding=\"max_length\",\n",
|
| 1248 |
+
" truncation=True,\n",
|
| 1249 |
+
" max_length=512\n",
|
| 1250 |
+
" )\n",
|
| 1251 |
+
"\n",
|
| 1252 |
+
" aligned_bboxes = []\n",
|
| 1253 |
+
" word_ids = tokenized_inputs.word_ids()\n",
|
| 1254 |
+
" previous_word_idx = None\n",
|
| 1255 |
+
"\n",
|
| 1256 |
+
" for word_idx in word_ids:\n",
|
| 1257 |
+
" if word_idx is None:\n",
|
| 1258 |
+
" aligned_bboxes.append([0, 0, 0, 0])\n",
|
| 1259 |
+
" elif word_idx != previous_word_idx:\n",
|
| 1260 |
+
" aligned_bboxes.append(bboxes[word_idx])\n",
|
| 1261 |
+
" else:\n",
|
| 1262 |
+
" aligned_bboxes.append(bboxes[word_idx])\n",
|
| 1263 |
+
" previous_word_idx = word_idx\n",
|
| 1264 |
+
"\n",
|
| 1265 |
+
" # --- Step 4: Run model prediction ---\n",
|
| 1266 |
+
" print(\"\\n--- RUNNING MODEL PREDICTION ---\")\n",
|
| 1267 |
+
" inputs = {\n",
|
| 1268 |
+
" \"input_ids\": tokenized_inputs[\"input_ids\"].to(device),\n",
|
| 1269 |
+
" \"attention_mask\": tokenized_inputs[\"attention_mask\"].to(device),\n",
|
| 1270 |
+
" \"bbox\": torch.tensor([aligned_bboxes]).to(device),\n",
|
| 1271 |
+
" \"return_dict\": True # Force return_dict\n",
|
| 1272 |
+
" }\n",
|
| 1273 |
+
"\n",
|
| 1274 |
+
" with torch.no_grad():\n",
|
| 1275 |
+
" outputs = model(**inputs)\n",
|
| 1276 |
+
" # Handle both tuple and dict outputs\n",
|
| 1277 |
+
" if isinstance(outputs, tuple):\n",
|
| 1278 |
+
" logits = outputs[0]\n",
|
| 1279 |
+
" else:\n",
|
| 1280 |
+
" logits = outputs.logits\n",
|
| 1281 |
+
" predictions = torch.argmax(logits, dim=2)\n",
|
| 1282 |
+
"\n",
|
| 1283 |
+
" # --- Step 5: Decode and Post-process the results ---\n",
|
| 1284 |
+
" print(\"\\n--- PARSING ENTITIES ---\")\n",
|
| 1285 |
+
" preds = predictions[0].cpu().tolist()\n",
|
| 1286 |
+
" tokens = tokenizer.convert_ids_to_tokens(tokenized_inputs[\"input_ids\"][0])\n",
|
| 1287 |
+
"\n",
|
| 1288 |
+
" raw_results = []\n",
|
| 1289 |
+
" for token, pred_id in zip(tokens, preds):\n",
|
| 1290 |
+
" label = model.config.id2label[pred_id]\n",
|
| 1291 |
+
" if label != \"O\":\n",
|
| 1292 |
+
" raw_results.append({\n",
|
| 1293 |
+
" \"entity\": label,\n",
|
| 1294 |
+
" \"word\": token,\n",
|
| 1295 |
+
" \"score\": 1.0 # Confidence score (could extract from logits if needed)\n",
|
| 1296 |
+
" })\n",
|
| 1297 |
+
"\n",
|
| 1298 |
+
" print(f\"Found {len(raw_results)} entity predictions\")\n",
|
| 1299 |
+
"\n",
|
| 1300 |
+
" # Post-process and structure the results\n",
|
| 1301 |
+
" final_json = group_and_clean_entities(raw_results, score_threshold=config.SCORE_THRESHOLD)\n",
|
| 1302 |
+
"\n",
|
| 1303 |
+
" print(\"\\n\" + \"=\"*60)\n",
|
| 1304 |
+
" print(\"--- FINAL EXTRACTED INVOICE DATA ---\")\n",
|
| 1305 |
+
" print(\"=\"*60)\n",
|
| 1306 |
+
" print(json.dumps(final_json, indent=2))\n",
|
| 1307 |
+
" print(\"=\"*60)\n",
|
| 1308 |
+
" print(\"\\n✓ Inference complete!\")\n",
|
| 1309 |
+
"\n",
|
| 1310 |
+
"if __name__ == '__main__':\n",
|
| 1311 |
+
" main()"
|
| 1312 |
+
],
|
| 1313 |
+
"metadata": {
|
| 1314 |
+
"colab": {
|
| 1315 |
+
"base_uri": "https://localhost:8080/"
|
| 1316 |
+
},
|
| 1317 |
+
"id": "VuRchHy9DGcS",
|
| 1318 |
+
"outputId": "8a250e8f-21be-4724-97d9-8fc299b9147b"
|
| 1319 |
+
},
|
| 1320 |
+
"execution_count": 7,
|
| 1321 |
+
"outputs": [
|
| 1322 |
+
{
|
| 1323 |
+
"output_type": "stream",
|
| 1324 |
+
"name": "stdout",
|
| 1325 |
+
"text": [
|
| 1326 |
+
"Initializing PaddleOCR engine...\n",
|
| 1327 |
+
"[2025/11/04 07:02:33] ppocr WARNING: The first GPU is used for inference by default, GPU ID: 0\n",
|
| 1328 |
+
"[2025/11/04 07:02:37] ppocr WARNING: The first GPU is used for inference by default, GPU ID: 0\n",
|
| 1329 |
+
"[2025/11/04 07:02:41] ppocr WARNING: The first GPU is used for inference by default, GPU ID: 0\n",
|
| 1330 |
+
"Loading fine-tuned Layout-Aware NER model...\n",
|
| 1331 |
+
"\n",
|
| 1332 |
+
"--- RUNNING OCR ---\n",
|
| 1333 |
+
"OCR detected 69 words\n",
|
| 1334 |
+
"\n",
|
| 1335 |
+
"--- RUNNING MODEL PREDICTION ---\n",
|
| 1336 |
+
"\n",
|
| 1337 |
+
"--- PARSING ENTITIES ---\n",
|
| 1338 |
+
"Found 108 entity predictions\n",
|
| 1339 |
+
"\n",
|
| 1340 |
+
"============================================================\n",
|
| 1341 |
+
"--- FINAL EXTRACTED INVOICE DATA ---\n",
|
| 1342 |
+
"============================================================\n",
|
| 1343 |
+
"{\n",
|
| 1344 |
+
" \"seller_name\": \"NEW FREEZE LAND Club AHMED <pad><pad><pad><pad><pad><pad><pad><pad><pad><pad><pad><pad><pad><pad><pad>\",\n",
|
| 1345 |
+
" \"client_name\": \"MANISHIKA\",\n",
|
| 1346 |
+
" \"inv_no\": \"18 / 0000 15 24 / 76\",\n",
|
| 1347 |
+
" \"client_phone\": \" 76\",\n",
|
| 1348 |
+
" \"date\": \"25 / 8 / 17\",\n",
|
| 1349 |
+
" \"subtotal\": \"257\",\n",
|
| 1350 |
+
" \"total\": \"303\",\n",
|
| 1351 |
+
" \"client_tax_id\": \"GST IN - 24 ABC FM 73 13 D 1 Z Q\",\n",
|
| 1352 |
+
" \"items\": [\n",
|
| 1353 |
+
" {\n",
|
| 1354 |
+
" \"hsn\": \"15\",\n",
|
| 1355 |
+
" \"qty\": \"1\",\n",
|
| 1356 |
+
" \"price\": \"151\",\n",
|
| 1357 |
+
" \"desc\": \"Tortas\"\n",
|
| 1358 |
+
" },\n",
|
| 1359 |
+
" {\n",
|
| 1360 |
+
" \"qty\": \"00\",\n",
|
| 1361 |
+
" \"price\": \"151\",\n",
|
| 1362 |
+
" \"desc\": \"Tortas\"\n",
|
| 1363 |
+
" },\n",
|
| 1364 |
+
" {\n",
|
| 1365 |
+
" \"qty\": \"00\",\n",
|
| 1366 |
+
" \"price\": \"53\"\n",
|
| 1367 |
+
" },\n",
|
| 1368 |
+
" {\n",
|
| 1369 |
+
" \"qty\": \"1\",\n",
|
| 1370 |
+
" \"price\": \"53\"\n",
|
| 1371 |
+
" },\n",
|
| 1372 |
+
" {\n",
|
| 1373 |
+
" \"qty\": \"00\",\n",
|
| 1374 |
+
" \"price\": \"53\"\n",
|
| 1375 |
+
" },\n",
|
| 1376 |
+
" {\n",
|
| 1377 |
+
" \"qty\": \"00\",\n",
|
| 1378 |
+
" \"price\": \"53\"\n",
|
| 1379 |
+
" },\n",
|
| 1380 |
+
" {\n",
|
| 1381 |
+
" \"qty\": \"1\"\n",
|
| 1382 |
+
" },\n",
|
| 1383 |
+
" {\n",
|
| 1384 |
+
" \"qty\": \"00\"\n",
|
| 1385 |
+
" },\n",
|
| 1386 |
+
" {\n",
|
| 1387 |
+
" \"qty\": \"00\"\n",
|
| 1388 |
+
" }\n",
|
| 1389 |
+
" ]\n",
|
| 1390 |
+
"}\n",
|
| 1391 |
+
"============================================================\n",
|
| 1392 |
+
"\n",
|
| 1393 |
+
"✓ Inference complete!\n"
|
| 1394 |
+
]
|
| 1395 |
+
}
|
| 1396 |
+
]
|
| 1397 |
+
},
|
| 1398 |
+
{
|
| 1399 |
+
"cell_type": "code",
|
| 1400 |
+
"source": [],
|
| 1401 |
+
"metadata": {
|
| 1402 |
+
"id": "o3oX3W08D58s"
|
| 1403 |
+
},
|
| 1404 |
+
"execution_count": null,
|
| 1405 |
+
"outputs": []
|
| 1406 |
+
}
|
| 1407 |
+
]
|
| 1408 |
+
}
|