Update README.md
Browse files
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 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
}
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
13: "B-Reference Number",
|
90 |
-
14: "B-Issue Date"
|
91 |
-
}
|
92 |
|
93 |
|
94 |
## Citation
|
95 |
-
@article{
|
96 |
-
title={
|
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},
|