runpo-LayoutLM3-Invoice-Receipt / label_mapping.json
mkdigitalgmbh's picture
Add label mapping
710f14c verified
{
"label_to_id": {
"O": 0,
"B-MerchantName": 1,
"I-MerchantName": 2,
"B-MerchantAddress": 3,
"I-MerchantAddress": 4,
"B-TransactionDate": 5,
"I-TransactionDate": 6,
"B-Currency": 7,
"I-Currency": 8,
"B-Total": 9,
"I-Total": 10,
"B-TotalTax": 11,
"I-TotalTax": 12,
"B-InvoiceNumber": 13,
"I-InvoiceNumber": 14,
"B-Subtotal": 15,
"I-Subtotal": 16,
"B-LineItems": 17,
"I-LineItems": 18
},
"id_to_label": {
"0": "O",
"1": "B-MerchantName",
"2": "I-MerchantName",
"3": "B-MerchantAddress",
"4": "I-MerchantAddress",
"5": "B-TransactionDate",
"6": "I-TransactionDate",
"7": "B-Currency",
"8": "I-Currency",
"9": "B-Total",
"10": "I-Total",
"11": "B-TotalTax",
"12": "I-TotalTax",
"13": "B-InvoiceNumber",
"14": "I-InvoiceNumber",
"15": "B-Subtotal",
"16": "I-Subtotal",
"17": "B-LineItems",
"18": "I-LineItems"
}
}