San-Analytics commited on
Commit
5fe6e2f
·
verified ·
1 Parent(s): aef913c

San-Analytics/invoice-ner

Browse files
Files changed (6) hide show
  1. README.md +70 -0
  2. config.json +60 -0
  3. model.safetensors +3 -0
  4. tokenizer.json +0 -0
  5. tokenizer_config.json +15 -0
  6. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: bert-base-cased
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - precision
9
+ - recall
10
+ - f1
11
+ model-index:
12
+ - name: ner
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # ner
20
+
21
+ This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on the None dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.0003
24
+ - Precision: 1.0
25
+ - Recall: 1.0
26
+ - F1: 1.0
27
+
28
+ ## Model description
29
+
30
+ More information needed
31
+
32
+ ## Intended uses & limitations
33
+
34
+ More information needed
35
+
36
+ ## Training and evaluation data
37
+
38
+ More information needed
39
+
40
+ ## Training procedure
41
+
42
+ ### Training hyperparameters
43
+
44
+ The following hyperparameters were used during training:
45
+ - learning_rate: 2e-05
46
+ - train_batch_size: 16
47
+ - eval_batch_size: 16
48
+ - seed: 42
49
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
50
+ - lr_scheduler_type: linear
51
+ - lr_scheduler_warmup_steps: 0.1
52
+ - num_epochs: 5
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 |
57
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:---:|
58
+ | 0.1717 | 1.0 | 125 | 0.0026 | 1.0 | 1.0 | 1.0 |
59
+ | 0.0022 | 2.0 | 250 | 0.0007 | 1.0 | 1.0 | 1.0 |
60
+ | 0.0014 | 3.0 | 375 | 0.0004 | 1.0 | 1.0 | 1.0 |
61
+ | 0.0010 | 4.0 | 500 | 0.0004 | 1.0 | 1.0 | 1.0 |
62
+ | 0.0008 | 5.0 | 625 | 0.0003 | 1.0 | 1.0 | 1.0 |
63
+
64
+
65
+ ### Framework versions
66
+
67
+ - Transformers 5.8.0
68
+ - Pytorch 2.11.0+cu130
69
+ - Datasets 4.8.5
70
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "BertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": null,
11
+ "gradient_checkpointing": false,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "id2label": {
16
+ "0": "O",
17
+ "1": "B-VENDOR",
18
+ "2": "I-VENDOR",
19
+ "3": "B-AMOUNT",
20
+ "4": "I-AMOUNT",
21
+ "5": "B-DATE",
22
+ "6": "I-DATE",
23
+ "7": "B-DOC_NUMBER",
24
+ "8": "I-DOC_NUMBER",
25
+ "9": "B-GST",
26
+ "10": "I-GST",
27
+ "11": "B-QUANTITY",
28
+ "12": "I-QUANTITY"
29
+ },
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": 3072,
32
+ "is_decoder": false,
33
+ "label2id": {
34
+ "B-AMOUNT": 3,
35
+ "B-DATE": 5,
36
+ "B-DOC_NUMBER": 7,
37
+ "B-GST": 9,
38
+ "B-QUANTITY": 11,
39
+ "B-VENDOR": 1,
40
+ "I-AMOUNT": 4,
41
+ "I-DATE": 6,
42
+ "I-DOC_NUMBER": 8,
43
+ "I-GST": 10,
44
+ "I-QUANTITY": 12,
45
+ "I-VENDOR": 2,
46
+ "O": 0
47
+ },
48
+ "layer_norm_eps": 1e-12,
49
+ "max_position_embeddings": 512,
50
+ "model_type": "bert",
51
+ "num_attention_heads": 12,
52
+ "num_hidden_layers": 12,
53
+ "pad_token_id": 0,
54
+ "position_embedding_type": "absolute",
55
+ "tie_word_embeddings": true,
56
+ "transformers_version": "5.8.0",
57
+ "type_vocab_size": 2,
58
+ "use_cache": false,
59
+ "vocab_size": 28996
60
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11bf91a5ca2a336894207ce3c719acbc2cb856e07918241c5b31901a02d5b27d
3
+ size 430942020
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": false,
5
+ "is_local": false,
6
+ "local_files_only": false,
7
+ "mask_token": "[MASK]",
8
+ "model_max_length": 512,
9
+ "pad_token": "[PAD]",
10
+ "sep_token": "[SEP]",
11
+ "strip_accents": null,
12
+ "tokenize_chinese_chars": true,
13
+ "tokenizer_class": "BertTokenizer",
14
+ "unk_token": "[UNK]"
15
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:732edc887d11c8467b297e840627bc5295c03597023d159761d0cd8be28e6762
3
+ size 5329