napatswift commited on
Commit
cbc446f
1 Parent(s): 0688e40

napatswift/xlm-roberta-base-ner-th

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: xlm-roberta-base
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - precision
8
+ - recall
9
+ - f1
10
+ - accuracy
11
+ model-index:
12
+ - name: ner_model
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_model
20
+
21
+ This model is a fine-tuned version of [xlm-roberta-base](https://huggingface.co/xlm-roberta-base) on an unknown dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.1247
24
+ - Precision: 0.8073
25
+ - Recall: 0.8695
26
+ - F1: 0.8372
27
+ - Accuracy: 0.9655
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: 1e-05
47
+ - train_batch_size: 16
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
+ - num_epochs: 5
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
57
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
58
+ | No log | 0.4 | 100 | 0.5360 | 0.4604 | 0.4644 | 0.4624 | 0.8846 |
59
+ | No log | 0.81 | 200 | 0.2882 | 0.6137 | 0.6619 | 0.6369 | 0.9307 |
60
+ | No log | 1.21 | 300 | 0.2128 | 0.7236 | 0.7649 | 0.7437 | 0.9442 |
61
+ | No log | 1.62 | 400 | 0.1811 | 0.7146 | 0.7925 | 0.7515 | 0.9494 |
62
+ | 0.4608 | 2.02 | 500 | 0.1594 | 0.7369 | 0.8021 | 0.7681 | 0.9542 |
63
+ | 0.4608 | 2.43 | 600 | 0.1532 | 0.7494 | 0.8331 | 0.7890 | 0.9572 |
64
+ | 0.4608 | 2.83 | 700 | 0.1403 | 0.7660 | 0.8417 | 0.8021 | 0.9594 |
65
+ | 0.4608 | 3.24 | 800 | 0.1342 | 0.7909 | 0.8428 | 0.8160 | 0.9625 |
66
+ | 0.4608 | 3.64 | 900 | 0.1325 | 0.7867 | 0.8572 | 0.8204 | 0.9626 |
67
+ | 0.1256 | 4.05 | 1000 | 0.1275 | 0.8056 | 0.8632 | 0.8334 | 0.9648 |
68
+ | 0.1256 | 4.45 | 1100 | 0.1229 | 0.8131 | 0.8643 | 0.8379 | 0.9657 |
69
+ | 0.1256 | 4.86 | 1200 | 0.1247 | 0.8073 | 0.8695 | 0.8372 | 0.9655 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - Transformers 4.35.2
75
+ - Pytorch 2.1.0+cu121
76
+ - Datasets 2.16.1
77
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "xlm-roberta-base",
3
+ "architectures": [
4
+ "XLMRobertaForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "B-PERSON",
15
+ "1": "I-PERSON",
16
+ "2": "O",
17
+ "3": "B-ORGANIZATION",
18
+ "4": "B-LOCATION",
19
+ "5": "I-ORGANIZATION",
20
+ "6": "I-LOCATION",
21
+ "7": "B-DATE",
22
+ "8": "I-DATE",
23
+ "9": "B-TIME",
24
+ "10": "I-TIME",
25
+ "11": "B-MONEY",
26
+ "12": "I-MONEY",
27
+ "13": "B-FACILITY",
28
+ "14": "I-FACILITY",
29
+ "15": "B-URL",
30
+ "16": "I-URL",
31
+ "17": "B-PERCENT",
32
+ "18": "I-PERCENT",
33
+ "19": "B-LEN",
34
+ "20": "I-LEN",
35
+ "21": "B-AGO",
36
+ "22": "I-AGO",
37
+ "23": "B-LAW",
38
+ "24": "I-LAW",
39
+ "25": "B-PHONE",
40
+ "26": "I-PHONE",
41
+ "27": "B-EMAIL",
42
+ "28": "I-EMAIL",
43
+ "29": "B-ZIP",
44
+ "30": "B-TEMPERATURE",
45
+ "31": "I-TEMPERATURE",
46
+ "32": "B-DTAE",
47
+ "33": "I-DTAE",
48
+ "34": "B-DATA",
49
+ "35": "I-DATA"
50
+ },
51
+ "initializer_range": 0.02,
52
+ "intermediate_size": 3072,
53
+ "label2id": {
54
+ "B-AGO": 21,
55
+ "B-DATA": 34,
56
+ "B-DATE": 7,
57
+ "B-DTAE": 32,
58
+ "B-EMAIL": 27,
59
+ "B-FACILITY": 13,
60
+ "B-LAW": 23,
61
+ "B-LEN": 19,
62
+ "B-LOCATION": 4,
63
+ "B-MONEY": 11,
64
+ "B-ORGANIZATION": 3,
65
+ "B-PERCENT": 17,
66
+ "B-PERSON": 0,
67
+ "B-PHONE": 25,
68
+ "B-TEMPERATURE": 30,
69
+ "B-TIME": 9,
70
+ "B-URL": 15,
71
+ "B-ZIP": 29,
72
+ "I-AGO": 22,
73
+ "I-DATA": 35,
74
+ "I-DATE": 8,
75
+ "I-DTAE": 33,
76
+ "I-EMAIL": 28,
77
+ "I-FACILITY": 14,
78
+ "I-LAW": 24,
79
+ "I-LEN": 20,
80
+ "I-LOCATION": 6,
81
+ "I-MONEY": 12,
82
+ "I-ORGANIZATION": 5,
83
+ "I-PERCENT": 18,
84
+ "I-PERSON": 1,
85
+ "I-PHONE": 26,
86
+ "I-TEMPERATURE": 31,
87
+ "I-TIME": 10,
88
+ "I-URL": 16,
89
+ "O": 2
90
+ },
91
+ "layer_norm_eps": 1e-05,
92
+ "max_position_embeddings": 514,
93
+ "model_type": "xlm-roberta",
94
+ "num_attention_heads": 12,
95
+ "num_hidden_layers": 12,
96
+ "output_past": true,
97
+ "pad_token_id": 1,
98
+ "position_embedding_type": "absolute",
99
+ "torch_dtype": "float32",
100
+ "transformers_version": "4.35.2",
101
+ "type_vocab_size": 1,
102
+ "use_cache": true,
103
+ "vocab_size": 250002
104
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4aefda7884fb440417793161d199f7745446b12d729e38e4c02c7b747ed2e778
3
+ size 1109947016
runs/Jan24_13-29-47_049e1b241bd9/events.out.tfevents.1706102987.049e1b241bd9.174.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68822f12e8cbb1453b385df441be03de83a185543f2594b52980c200f7714f9d
3
+ size 12033
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1cc44ad7faaeec47241864835473fd5403f2da94673f3f764a77ebcb0a803ec
3
+ size 17083009
tokenizer_config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "mask_token": "<mask>",
49
+ "model_max_length": 512,
50
+ "pad_token": "<pad>",
51
+ "sep_token": "</s>",
52
+ "tokenizer_class": "XLMRobertaTokenizer",
53
+ "unk_token": "<unk>"
54
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52a5fd532b3a9a10647359362874cdb150c4e39c82574d6f9aaa6ebef6310505
3
+ size 4536