Update README.md
Browse files
README.md
CHANGED
|
@@ -2,4 +2,20 @@ Fine tuning LayoutLMv2 model on Vietnamese bill dataset
|
|
| 2 |
```python
|
| 3 |
from transformers import LayoutLMv2ForTokenClassification
|
| 4 |
model = LayoutLMv2ForTokenClassification.from_pretrained('cuongngm/layoutlm-bill', num_labels=len(labels))
|
| 5 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
```python
|
| 3 |
from transformers import LayoutLMv2ForTokenClassification
|
| 4 |
model = LayoutLMv2ForTokenClassification.from_pretrained('cuongngm/layoutlm-bill', num_labels=len(labels))
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
labels = ['price',
|
| 8 |
+
'storename',
|
| 9 |
+
'total_cost',
|
| 10 |
+
'phone',
|
| 11 |
+
'address',
|
| 12 |
+
'unitprice',
|
| 13 |
+
'item',
|
| 14 |
+
'subitem',
|
| 15 |
+
'other',
|
| 16 |
+
'time',
|
| 17 |
+
'unit',
|
| 18 |
+
'total refunds',
|
| 19 |
+
'total_qty',
|
| 20 |
+
'seller',
|
| 21 |
+
'total_received']
|