File size: 431 Bytes
dad9850
 
 
 
ef55d56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Fine tuning LayoutLMv2 model on Vietnamese bill dataset 
```python
from transformers import LayoutLMv2ForTokenClassification
model = LayoutLMv2ForTokenClassification.from_pretrained('cuongngm/layoutlm-bill', num_labels=len(labels))
```

labels = ['price',
 'storename',
 'total_cost',
 'phone',
 'address',
 'unitprice',
 'item',
 'subitem',
 'other',
 'time',
 'unit',
 'total refunds',
 'total_qty',
 'seller',
 'total_received']