Autopus commited on
Commit
7cc42ce
·
verified ·
1 Parent(s): 088b177

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +36 -39
README.md CHANGED
@@ -52,48 +52,45 @@ The model has been trained with the following `label2id` and `id2label` mappings
52
  ### `label2id` Mapping
53
 
54
  ```json
55
- {
56
- "I-Amount Including tax": 0,
57
- "I-Due Date": 1,
58
- "I-Reference Number": 2,
59
- "B-Amount Including tax": 3,
60
- "I-Customer Name": 4,
61
- "O": 5,
62
- "I-Issue Date": 6,
63
- "B-Amount": 7,
64
- "B-Vendor Name": 8,
65
- "I-Vendor Name": 9,
66
- "B-Customer Name": 10,
67
- "B-Due Date": 11,
68
- "I-Amount": 12,
69
- "B-Reference Number": 13,
70
- "B-Issue Date": 14
71
- }
72
-
73
- ### `label2id` Mapping
74
-
75
- {
76
- 0: "I-Amount Including tax",
77
- 1: "I-Due Date",
78
- 2: "I-Reference Number",
79
- 3: "B-Amount Including tax",
80
- 4: "I-Customer Name",
81
- 5: "O",
82
- 6: "I-Issue Date",
83
- 7: "B-Amount",
84
- 8: "B-Vendor Name",
85
- 9: "I-Vendor Name",
86
- 10: "B-Customer Name",
87
- 11: "B-Due Date",
88
- 12: "I-Amount",
89
- 13: "B-Reference Number",
90
- 14: "B-Issue Date"
91
- }
92
 
93
 
94
  ## Citation
95
- @article{Xu2020LayoutLMv2MP,
96
- title={LayoutLMv2: Multi-modal Pre-training for Visually-Rich Document Understanding},
97
  author={Yiheng Xu and Minghao Li and Lei Cui and Shaohan Huang and Furu Wei and Ming Zhou},
98
  journal={ArXiv},
99
  year={2020},
 
52
  ### `label2id` Mapping
53
 
54
  ```json
55
+ label2id = {
56
+ 'I-Customer Name': 0,
57
+ 'B-Issue Date': 1,
58
+ 'I-Issue Date': 2,
59
+ 'I-Due Date': 3,
60
+ 'I-Amount': 4,
61
+ 'B-Due Date': 5,
62
+ 'O': 6,
63
+ 'B-Amount Including tax': 7,
64
+ 'B-Customer Name': 8,
65
+ 'B-Amount': 9,
66
+ 'I-Amount Including tax': 10,
67
+ 'B-Vendor Name': 11,
68
+ 'I-Vendor Name': 12,
69
+ 'I-Reference Number': 13,
70
+ 'B-Reference Number': 14
71
+ }
72
+ id2label = {
73
+ 0: 'I-Customer Name',
74
+ 1: 'B-Issue Date',
75
+ 2: 'I-Issue Date',
76
+ 3: 'I-Due Date',
77
+ 4: 'I-Amount',
78
+ 5: 'B-Due Date',
79
+ 6: 'O',
80
+ 7: 'B-Amount Including tax',
81
+ 8: 'B-Customer Name',
82
+ 9: 'B-Amount',
83
+ 10: 'I-Amount Including tax',
84
+ 11: 'B-Vendor Name',
85
+ 12: 'I-Vendor Name',
86
+ 13: 'I-Reference Number',
87
+ 14: 'B-Reference Number'
88
+ }
 
 
 
89
 
90
 
91
  ## Citation
92
+ @article{Xu2020LayoutLM,
93
+ title={LayoutLM: Multi-modal Pre-training for Visually-Rich Document Understanding},
94
  author={Yiheng Xu and Minghao Li and Lei Cui and Shaohan Huang and Furu Wei and Ming Zhou},
95
  journal={ArXiv},
96
  year={2020},