PRAJWAL23 commited on
Commit
c385099
1 Parent(s): b4b906e

Upload LayoutLMv3ForTokenClassification

Browse files
Files changed (2) hide show
  1. config.json +69 -25
  2. pytorch_model.bin +2 -2
config.json CHANGED
@@ -14,35 +14,79 @@
14
  "hidden_dropout_prob": 0.1,
15
  "hidden_size": 768,
16
  "id2label": {
17
- "0": "O",
18
- "1": "B-ABN",
19
- "2": "B-BILLER",
20
- "3": "B-BILLER_ADDRESS",
21
- "4": "B-BILLER_POST_CODE",
22
- "5": "B-DUE_DATE",
23
- "6": "B-GST",
24
- "7": "B-INVOICE_DATE",
25
- "8": "B-INVOICE_NUMBER",
26
- "9": "B-SUBTOTAL",
27
- "10": "B-TOTAL",
28
- "11": "I-BILLER_ADDRESS"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  },
30
  "initializer_range": 0.02,
31
  "input_size": 224,
32
  "intermediate_size": 3072,
33
  "label2id": {
34
- "B-ABN": 1,
35
- "B-BILLER": 2,
36
- "B-BILLER_ADDRESS": 3,
37
- "B-BILLER_POST_CODE": 4,
38
- "B-DUE_DATE": 5,
39
- "B-GST": 6,
40
- "B-INVOICE_DATE": 7,
41
- "B-INVOICE_NUMBER": 8,
42
- "B-SUBTOTAL": 9,
43
- "B-TOTAL": 10,
44
- "I-BILLER_ADDRESS": 11,
45
- "O": 0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  },
47
  "layer_norm_eps": 1e-05,
48
  "max_2d_position_embeddings": 1024,
@@ -61,7 +105,7 @@
61
  "shape_size": 128,
62
  "text_embed": true,
63
  "torch_dtype": "float32",
64
- "transformers_version": "4.32.0.dev0",
65
  "type_vocab_size": 1,
66
  "visual_embed": true,
67
  "vocab_size": 50265
 
14
  "hidden_dropout_prob": 0.1,
15
  "hidden_size": 768,
16
  "id2label": {
17
+ "0": "B-BalanceDue",
18
+ "1": "B-BuyerAdress",
19
+ "2": "B-BuyerGSTIN",
20
+ "3": "B-BuyerName",
21
+ "4": "B-CGST",
22
+ "5": "B-DueDate",
23
+ "6": "B-HSN/SAC",
24
+ "7": "B-InvoiceDate",
25
+ "8": "B-InvoiceNo",
26
+ "9": "B-PaymentMade",
27
+ "10": "B-SGST",
28
+ "11": "B-SellerAdress",
29
+ "12": "B-SellerGSTIN",
30
+ "13": "B-SellerName",
31
+ "14": "B-SubTotal",
32
+ "15": "B-Total",
33
+ "16": "HSN/SAC",
34
+ "17": "I-BalanceDue",
35
+ "18": "I-BuyerAdress",
36
+ "19": "I-BuyerGSTIN",
37
+ "20": "I-BuyerName",
38
+ "21": "I-CGST",
39
+ "22": "I-DueDate",
40
+ "23": "I-HSN/SAC",
41
+ "24": "I-InvoiceDate",
42
+ "25": "I-InvoiceNo",
43
+ "26": "I-PaymentMade",
44
+ "27": "I-SGST",
45
+ "28": "I-SellerAdress",
46
+ "29": "I-SellerGSTIN",
47
+ "30": "I-SellerName",
48
+ "31": "I-SubTotal",
49
+ "32": "I-Total",
50
+ "33": "IgnoreText"
51
  },
52
  "initializer_range": 0.02,
53
  "input_size": 224,
54
  "intermediate_size": 3072,
55
  "label2id": {
56
+ "B-BalanceDue": 0,
57
+ "B-BuyerAdress": 1,
58
+ "B-BuyerGSTIN": 2,
59
+ "B-BuyerName": 3,
60
+ "B-CGST": 4,
61
+ "B-DueDate": 5,
62
+ "B-HSN/SAC": 6,
63
+ "B-InvoiceDate": 7,
64
+ "B-InvoiceNo": 8,
65
+ "B-PaymentMade": 9,
66
+ "B-SGST": 10,
67
+ "B-SellerAdress": 11,
68
+ "B-SellerGSTIN": 12,
69
+ "B-SellerName": 13,
70
+ "B-SubTotal": 14,
71
+ "B-Total": 15,
72
+ "HSN/SAC": 16,
73
+ "I-BalanceDue": 17,
74
+ "I-BuyerAdress": 18,
75
+ "I-BuyerGSTIN": 19,
76
+ "I-BuyerName": 20,
77
+ "I-CGST": 21,
78
+ "I-DueDate": 22,
79
+ "I-HSN/SAC": 23,
80
+ "I-InvoiceDate": 24,
81
+ "I-InvoiceNo": 25,
82
+ "I-PaymentMade": 26,
83
+ "I-SGST": 27,
84
+ "I-SellerAdress": 28,
85
+ "I-SellerGSTIN": 29,
86
+ "I-SellerName": 30,
87
+ "I-SubTotal": 31,
88
+ "I-Total": 32,
89
+ "IgnoreText": 33
90
  },
91
  "layer_norm_eps": 1e-05,
92
  "max_2d_position_embeddings": 1024,
 
105
  "shape_size": 128,
106
  "text_embed": true,
107
  "torch_dtype": "float32",
108
+ "transformers_version": "4.33.0.dev0",
109
  "type_vocab_size": 1,
110
  "visual_embed": true,
111
  "vocab_size": 50265
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1293326ecc59cd46430d175254258808d86c61192f4822a4740954fb3d97df90
3
- size 503781677
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6be95f1562b3888adfac2aa02c5c6d7affa1b575193d0e6b6211208bb3b2f04d
3
+ size 503849389