docpolarbert-docile / config.json
buthaya's picture
Upload 2 files
10fb99c verified
{
"architectures": [
"DocPolarBERTForTokenClassification"
],
"attention_probs_dropout_prob": 0.1,
"bos_token_id": 0,
"classifier_dropout": null,
"coordinate_size": 128,
"eos_token_id": 2,
"has_angle_attention_bias": true,
"has_relative_attention_bias": true,
"has_spatial_attention_bias": true,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"id2label": {
"0": "O",
"1": "B-iban",
"2": "I-iban",
"3": "B-currency_code_amount_due",
"4": "I-currency_code_amount_due",
"5": "B-customer_order_id",
"6": "I-customer_order_id",
"7": "B-customer_billing_address",
"8": "I-customer_billing_address",
"9": "B-customer_delivery_address",
"10": "I-customer_delivery_address",
"11": "B-vendor_address",
"12": "I-vendor_address",
"13": "B-account_num",
"14": "I-account_num",
"15": "B-customer_other_name",
"16": "I-customer_other_name",
"17": "B-amount_due",
"18": "I-amount_due",
"19": "B-amount_total_gross",
"20": "I-amount_total_gross",
"21": "B-document_id",
"22": "I-document_id",
"23": "B-customer_billing_name",
"24": "I-customer_billing_name",
"25": "B-vendor_order_id",
"26": "I-vendor_order_id",
"27": "B-customer_tax_id",
"28": "I-customer_tax_id",
"29": "B-vendor_tax_id",
"30": "I-vendor_tax_id",
"31": "B-vendor_email",
"32": "I-vendor_email",
"33": "B-bank_num",
"34": "I-bank_num",
"35": "B-tax_detail_net",
"36": "I-tax_detail_net",
"37": "B-bic",
"38": "I-bic",
"39": "B-customer_other_address",
"40": "I-customer_other_address",
"41": "B-customer_delivery_name",
"42": "I-customer_delivery_name",
"43": "B-vendor_name",
"44": "I-vendor_name",
"45": "B-order_id",
"46": "I-order_id",
"47": "B-vendor_registration_id",
"48": "I-vendor_registration_id",
"49": "B-date_due",
"50": "I-date_due",
"51": "B-payment_terms",
"52": "I-payment_terms",
"53": "B-tax_detail_gross",
"54": "I-tax_detail_gross",
"55": "B-customer_id",
"56": "I-customer_id",
"57": "B-amount_paid",
"58": "I-amount_paid",
"59": "B-amount_total_net",
"60": "I-amount_total_net",
"61": "B-tax_detail_rate",
"62": "I-tax_detail_rate",
"63": "B-date_issue",
"64": "I-date_issue",
"65": "B-amount_total_tax",
"66": "I-amount_total_tax",
"67": "B-payment_reference",
"68": "I-payment_reference",
"69": "B-customer_registration_id",
"70": "I-customer_registration_id",
"71": "B-tax_detail_tax",
"72": "I-tax_detail_tax"
},
"initializer_range": 0.02,
"input_size": 224,
"intermediate_size": 3072,
"label2id": {
"B-account_num": 13,
"B-amount_due": 17,
"B-amount_paid": 57,
"B-amount_total_gross": 19,
"B-amount_total_net": 59,
"B-amount_total_tax": 65,
"B-bank_num": 33,
"B-bic": 37,
"B-currency_code_amount_due": 3,
"B-customer_billing_address": 7,
"B-customer_billing_name": 23,
"B-customer_delivery_address": 9,
"B-customer_delivery_name": 41,
"B-customer_id": 55,
"B-customer_order_id": 5,
"B-customer_other_address": 39,
"B-customer_other_name": 15,
"B-customer_registration_id": 69,
"B-customer_tax_id": 27,
"B-date_due": 49,
"B-date_issue": 63,
"B-document_id": 21,
"B-iban": 1,
"B-order_id": 45,
"B-payment_reference": 67,
"B-payment_terms": 51,
"B-tax_detail_gross": 53,
"B-tax_detail_net": 35,
"B-tax_detail_rate": 61,
"B-tax_detail_tax": 71,
"B-vendor_address": 11,
"B-vendor_email": 31,
"B-vendor_name": 43,
"B-vendor_order_id": 25,
"B-vendor_registration_id": 47,
"B-vendor_tax_id": 29,
"I-account_num": 14,
"I-amount_due": 18,
"I-amount_paid": 58,
"I-amount_total_gross": 20,
"I-amount_total_net": 60,
"I-amount_total_tax": 66,
"I-bank_num": 34,
"I-bic": 38,
"I-currency_code_amount_due": 4,
"I-customer_billing_address": 8,
"I-customer_billing_name": 24,
"I-customer_delivery_address": 10,
"I-customer_delivery_name": 42,
"I-customer_id": 56,
"I-customer_order_id": 6,
"I-customer_other_address": 40,
"I-customer_other_name": 16,
"I-customer_registration_id": 70,
"I-customer_tax_id": 28,
"I-date_due": 50,
"I-date_issue": 64,
"I-document_id": 22,
"I-iban": 2,
"I-order_id": 46,
"I-payment_reference": 68,
"I-payment_terms": 52,
"I-tax_detail_gross": 54,
"I-tax_detail_net": 36,
"I-tax_detail_rate": 62,
"I-tax_detail_tax": 72,
"I-vendor_address": 12,
"I-vendor_email": 32,
"I-vendor_name": 44,
"I-vendor_order_id": 26,
"I-vendor_registration_id": 48,
"I-vendor_tax_id": 30,
"O": 0
},
"layer_norm_eps": 1e-05,
"max_2d_position_embeddings": 1024,
"max_position_embeddings": 514,
"max_rel_2d_pos": 256,
"max_rel_pos": 128,
"model_type": "docpolarbert",
"num_attention_heads": 12,
"num_channels": 3,
"num_hidden_layers": 12,
"pad_token_id": 1,
"patch_size": 16,
"rel_2d_angle_bins": 4,
"rel_2d_pos_bins": 4,
"rel_pos_bins": 32,
"shape_size": 128,
"text_embed": true,
"torch_dtype": "float32",
"transformers_version": "4.35.1",
"type_vocab_size": 1,
"visual_embed": false,
"vocab_size": 50265
}