End of training
Browse files- README.md +77 -0
- merges.txt +0 -0
- preprocessor_config.json +26 -0
- pytorch_model.bin +1 -1
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +85 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: SCUT-DLVCLab/lilt-roberta-en-base
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- funsd-layoutlmv3
|
8 |
+
model-index:
|
9 |
+
- name: lilt-en-funsd
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# lilt-en-funsd
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [SCUT-DLVCLab/lilt-roberta-en-base](https://huggingface.co/SCUT-DLVCLab/lilt-roberta-en-base) on the funsd-layoutlmv3 dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 1.7487
|
21 |
+
- Answer: {'precision': 0.8851674641148325, 'recall': 0.9057527539779682, 'f1': 0.8953418027828192, 'number': 817}
|
22 |
+
- Header: {'precision': 0.65625, 'recall': 0.5294117647058824, 'f1': 0.586046511627907, 'number': 119}
|
23 |
+
- Question: {'precision': 0.8825088339222615, 'recall': 0.9275766016713092, 'f1': 0.9044816659121775, 'number': 1077}
|
24 |
+
- Overall Precision: 0.8731
|
25 |
+
- Overall Recall: 0.8952
|
26 |
+
- Overall F1: 0.8840
|
27 |
+
- Overall Accuracy: 0.7977
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
+
|
43 |
+
### Training hyperparameters
|
44 |
+
|
45 |
+
The following hyperparameters were used during training:
|
46 |
+
- learning_rate: 5e-05
|
47 |
+
- train_batch_size: 8
|
48 |
+
- eval_batch_size: 8
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- training_steps: 2500
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | Answer | Header | Question | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
|
57 |
+
|:-------------:|:------:|:----:|:---------------:|:--------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------:|:-----------------:|:--------------:|:----------:|:----------------:|
|
58 |
+
| 0.4352 | 10.53 | 200 | 0.9574 | {'precision': 0.8385167464114832, 'recall': 0.8580171358629131, 'f1': 0.8481548699334543, 'number': 817} | {'precision': 0.5673076923076923, 'recall': 0.4957983193277311, 'f1': 0.5291479820627802, 'number': 119} | {'precision': 0.8394534585824082, 'recall': 0.9127205199628597, 'f1': 0.8745551601423487, 'number': 1077} | 0.8257 | 0.8659 | 0.8453 | 0.7896 |
|
59 |
+
| 0.0467 | 21.05 | 400 | 1.3446 | {'precision': 0.8343057176196033, 'recall': 0.8751529987760098, 'f1': 0.8542413381123058, 'number': 817} | {'precision': 0.5789473684210527, 'recall': 0.46218487394957986, 'f1': 0.514018691588785, 'number': 119} | {'precision': 0.8543859649122807, 'recall': 0.904363974001857, 'f1': 0.8786648624267027, 'number': 1077} | 0.8337 | 0.8664 | 0.8497 | 0.7969 |
|
60 |
+
| 0.0125 | 31.58 | 600 | 1.4274 | {'precision': 0.8556461001164144, 'recall': 0.8996328029375765, 'f1': 0.8770883054892601, 'number': 817} | {'precision': 0.568, 'recall': 0.5966386554621849, 'f1': 0.5819672131147541, 'number': 119} | {'precision': 0.8916211293260473, 'recall': 0.9090064995357474, 'f1': 0.9002298850574713, 'number': 1077} | 0.8573 | 0.8867 | 0.8718 | 0.8010 |
|
61 |
+
| 0.0071 | 42.11 | 800 | 1.4147 | {'precision': 0.865265760197775, 'recall': 0.8567931456548348, 'f1': 0.8610086100861009, 'number': 817} | {'precision': 0.6888888888888889, 'recall': 0.5210084033613446, 'f1': 0.5933014354066986, 'number': 119} | {'precision': 0.8798206278026905, 'recall': 0.9108635097493036, 'f1': 0.8950729927007299, 'number': 1077} | 0.8654 | 0.8659 | 0.8657 | 0.8055 |
|
62 |
+
| 0.0067 | 52.63 | 1000 | 1.5877 | {'precision': 0.8747016706443914, 'recall': 0.8971848225214198, 'f1': 0.8858006042296073, 'number': 817} | {'precision': 0.6074766355140186, 'recall': 0.5462184873949579, 'f1': 0.575221238938053, 'number': 119} | {'precision': 0.8936363636363637, 'recall': 0.9127205199628597, 'f1': 0.9030776297657327, 'number': 1077} | 0.8709 | 0.8847 | 0.8778 | 0.8080 |
|
63 |
+
| 0.003 | 63.16 | 1200 | 1.5406 | {'precision': 0.875, 'recall': 0.8996328029375765, 'f1': 0.8871454435727218, 'number': 817} | {'precision': 0.584070796460177, 'recall': 0.5546218487394958, 'f1': 0.5689655172413793, 'number': 119} | {'precision': 0.8858695652173914, 'recall': 0.9080779944289693, 'f1': 0.8968363136176066, 'number': 1077} | 0.8649 | 0.8838 | 0.8742 | 0.8183 |
|
64 |
+
| 0.0011 | 73.68 | 1400 | 1.6131 | {'precision': 0.8686987104337632, 'recall': 0.9069767441860465, 'f1': 0.8874251497005988, 'number': 817} | {'precision': 0.7011494252873564, 'recall': 0.5126050420168067, 'f1': 0.5922330097087377, 'number': 119} | {'precision': 0.8821966341895483, 'recall': 0.924791086350975, 'f1': 0.9029918404351769, 'number': 1077} | 0.8690 | 0.8932 | 0.8809 | 0.8111 |
|
65 |
+
| 0.0008 | 84.21 | 1600 | 1.7487 | {'precision': 0.8851674641148325, 'recall': 0.9057527539779682, 'f1': 0.8953418027828192, 'number': 817} | {'precision': 0.65625, 'recall': 0.5294117647058824, 'f1': 0.586046511627907, 'number': 119} | {'precision': 0.8825088339222615, 'recall': 0.9275766016713092, 'f1': 0.9044816659121775, 'number': 1077} | 0.8731 | 0.8952 | 0.8840 | 0.7977 |
|
66 |
+
| 0.0007 | 94.74 | 1800 | 1.8317 | {'precision': 0.8605990783410138, 'recall': 0.9143206854345165, 'f1': 0.886646884272997, 'number': 817} | {'precision': 0.6095238095238096, 'recall': 0.5378151260504201, 'f1': 0.5714285714285715, 'number': 119} | {'precision': 0.9026876737720111, 'recall': 0.904363974001857, 'f1': 0.9035250463821892, 'number': 1077} | 0.8699 | 0.8867 | 0.8782 | 0.7934 |
|
67 |
+
| 0.0005 | 105.26 | 2000 | 1.8600 | {'precision': 0.8669778296382731, 'recall': 0.9094247246022031, 'f1': 0.8876941457586618, 'number': 817} | {'precision': 0.6428571428571429, 'recall': 0.5294117647058824, 'f1': 0.5806451612903226, 'number': 119} | {'precision': 0.8928247048138056, 'recall': 0.9127205199628597, 'f1': 0.9026629935720845, 'number': 1077} | 0.8701 | 0.8887 | 0.8793 | 0.7897 |
|
68 |
+
| 0.0005 | 115.79 | 2200 | 1.7672 | {'precision': 0.8781362007168458, 'recall': 0.8996328029375765, 'f1': 0.8887545344619106, 'number': 817} | {'precision': 0.6568627450980392, 'recall': 0.5630252100840336, 'f1': 0.6063348416289592, 'number': 119} | {'precision': 0.8939256572982774, 'recall': 0.9155060352831941, 'f1': 0.9045871559633027, 'number': 1077} | 0.8756 | 0.8882 | 0.8819 | 0.8074 |
|
69 |
+
| 0.0002 | 126.32 | 2400 | 1.8044 | {'precision': 0.8604382929642446, 'recall': 0.9130966952264382, 'f1': 0.8859857482185273, 'number': 817} | {'precision': 0.6391752577319587, 'recall': 0.5210084033613446, 'f1': 0.5740740740740741, 'number': 119} | {'precision': 0.9022140221402214, 'recall': 0.9080779944289693, 'f1': 0.9051365108745951, 'number': 1077} | 0.8721 | 0.8872 | 0.8796 | 0.8000 |
|
70 |
+
|
71 |
+
|
72 |
+
### Framework versions
|
73 |
+
|
74 |
+
- Transformers 4.32.1
|
75 |
+
- Pytorch 2.0.1+cu118
|
76 |
+
- Datasets 2.14.4
|
77 |
+
- Tokenizers 0.13.3
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
preprocessor_config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"apply_ocr": true,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"image_mean": [
|
7 |
+
0.5,
|
8 |
+
0.5,
|
9 |
+
0.5
|
10 |
+
],
|
11 |
+
"image_processor_type": "LayoutLMv3FeatureExtractor",
|
12 |
+
"image_std": [
|
13 |
+
0.5,
|
14 |
+
0.5,
|
15 |
+
0.5
|
16 |
+
],
|
17 |
+
"ocr_lang": null,
|
18 |
+
"processor_class": "LayoutLMv3Processor",
|
19 |
+
"resample": 2,
|
20 |
+
"rescale_factor": 0.00392156862745098,
|
21 |
+
"size": {
|
22 |
+
"height": 224,
|
23 |
+
"width": 224
|
24 |
+
},
|
25 |
+
"tesseract_config": ""
|
26 |
+
}
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 520816717
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5ef1d19760ff630fbd6d32de2823a2dc9fa5f2cc52e0a4910fb60b0f6d34496e
|
3 |
size 520816717
|
special_tokens_map.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"cls_token": {
|
10 |
+
"content": "<s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"eos_token": {
|
17 |
+
"content": "</s>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": true,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"mask_token": {
|
24 |
+
"content": "<mask>",
|
25 |
+
"lstrip": true,
|
26 |
+
"normalized": true,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"pad_token": {
|
31 |
+
"content": "<pad>",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": true,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
},
|
37 |
+
"sep_token": {
|
38 |
+
"content": "</s>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": true,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false
|
43 |
+
},
|
44 |
+
"unk_token": {
|
45 |
+
"content": "<unk>",
|
46 |
+
"lstrip": false,
|
47 |
+
"normalized": true,
|
48 |
+
"rstrip": false,
|
49 |
+
"single_word": false
|
50 |
+
}
|
51 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": true,
|
3 |
+
"bos_token": {
|
4 |
+
"__type": "AddedToken",
|
5 |
+
"content": "<s>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false
|
10 |
+
},
|
11 |
+
"clean_up_tokenization_spaces": true,
|
12 |
+
"cls_token": {
|
13 |
+
"__type": "AddedToken",
|
14 |
+
"content": "<s>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": true,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false
|
19 |
+
},
|
20 |
+
"cls_token_box": [
|
21 |
+
0,
|
22 |
+
0,
|
23 |
+
0,
|
24 |
+
0
|
25 |
+
],
|
26 |
+
"eos_token": {
|
27 |
+
"__type": "AddedToken",
|
28 |
+
"content": "</s>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": true,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false
|
33 |
+
},
|
34 |
+
"errors": "replace",
|
35 |
+
"mask_token": {
|
36 |
+
"__type": "AddedToken",
|
37 |
+
"content": "<mask>",
|
38 |
+
"lstrip": true,
|
39 |
+
"normalized": true,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false
|
42 |
+
},
|
43 |
+
"model_max_length": 512,
|
44 |
+
"only_label_first_subword": true,
|
45 |
+
"pad_token": {
|
46 |
+
"__type": "AddedToken",
|
47 |
+
"content": "<pad>",
|
48 |
+
"lstrip": false,
|
49 |
+
"normalized": true,
|
50 |
+
"rstrip": false,
|
51 |
+
"single_word": false
|
52 |
+
},
|
53 |
+
"pad_token_box": [
|
54 |
+
0,
|
55 |
+
0,
|
56 |
+
0,
|
57 |
+
0
|
58 |
+
],
|
59 |
+
"pad_token_label": -100,
|
60 |
+
"processor_class": "LayoutLMv3Processor",
|
61 |
+
"sep_token": {
|
62 |
+
"__type": "AddedToken",
|
63 |
+
"content": "</s>",
|
64 |
+
"lstrip": false,
|
65 |
+
"normalized": true,
|
66 |
+
"rstrip": false,
|
67 |
+
"single_word": false
|
68 |
+
},
|
69 |
+
"sep_token_box": [
|
70 |
+
0,
|
71 |
+
0,
|
72 |
+
0,
|
73 |
+
0
|
74 |
+
],
|
75 |
+
"tokenizer_class": "LayoutLMv3Tokenizer",
|
76 |
+
"trim_offsets": true,
|
77 |
+
"unk_token": {
|
78 |
+
"__type": "AddedToken",
|
79 |
+
"content": "<unk>",
|
80 |
+
"lstrip": false,
|
81 |
+
"normalized": true,
|
82 |
+
"rstrip": false,
|
83 |
+
"single_word": false
|
84 |
+
}
|
85 |
+
}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|