mkdigitalgmbh commited on
Commit
dca54f0
·
verified ·
1 Parent(s): 720a562

Add custom label configuration

Browse files
Files changed (1) hide show
  1. config.json +60 -0
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/layoutlmv3-base",
3
+ "architectures": [
4
+ "LayoutLMv3ForTokenClassification"
5
+ ],
6
+ "model_type": "layoutlmv3",
7
+ "num_labels": 19,
8
+ "id2label": {
9
+ "0": "O",
10
+ "1": "B-MerchantName",
11
+ "2": "I-MerchantName",
12
+ "3": "B-MerchantAddress",
13
+ "4": "I-MerchantAddress",
14
+ "5": "B-TransactionDate",
15
+ "6": "I-TransactionDate",
16
+ "7": "B-Currency",
17
+ "8": "I-Currency",
18
+ "9": "B-Total",
19
+ "10": "I-Total",
20
+ "11": "B-TotalTax",
21
+ "12": "I-TotalTax",
22
+ "13": "B-InvoiceNumber",
23
+ "14": "I-InvoiceNumber",
24
+ "15": "B-Subtotal",
25
+ "16": "I-Subtotal",
26
+ "17": "B-LineItems",
27
+ "18": "I-LineItems"
28
+ },
29
+ "label2id": {
30
+ "O": 0,
31
+ "B-MerchantName": 1,
32
+ "I-MerchantName": 2,
33
+ "B-MerchantAddress": 3,
34
+ "I-MerchantAddress": 4,
35
+ "B-TransactionDate": 5,
36
+ "I-TransactionDate": 6,
37
+ "B-Currency": 7,
38
+ "I-Currency": 8,
39
+ "B-Total": 9,
40
+ "I-Total": 10,
41
+ "B-TotalTax": 11,
42
+ "I-TotalTax": 12,
43
+ "B-InvoiceNumber": 13,
44
+ "I-InvoiceNumber": 14,
45
+ "B-Subtotal": 15,
46
+ "I-Subtotal": 16,
47
+ "B-LineItems": 17,
48
+ "I-LineItems": 18
49
+ },
50
+ "coordinate_size": 1024,
51
+ "hidden_size": 768,
52
+ "image_size": 224,
53
+ "input_size": 224,
54
+ "intermediate_size": 3072,
55
+ "max_2d_position_embeddings": 1024,
56
+ "max_position_embeddings": 514,
57
+ "num_attention_heads": 12,
58
+ "num_hidden_layers": 12,
59
+ "vocab_size": 50265
60
+ }