arubenruben
commited on
Commit
•
aeccfbb
1
Parent(s):
e4a0514
Training in progress, epoch 1
Browse files- README.md +105 -0
- config.json +78 -0
- model.safetensors +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: neuralmind/bert-base-portuguese-cased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- harem
|
8 |
+
metrics:
|
9 |
+
- precision
|
10 |
+
- recall
|
11 |
+
- f1
|
12 |
+
- accuracy
|
13 |
+
model-index:
|
14 |
+
- name: harem-ner
|
15 |
+
results:
|
16 |
+
- task:
|
17 |
+
name: Token Classification
|
18 |
+
type: token-classification
|
19 |
+
dataset:
|
20 |
+
name: harem
|
21 |
+
type: harem
|
22 |
+
config: default
|
23 |
+
split: test
|
24 |
+
args: default
|
25 |
+
metrics:
|
26 |
+
- name: Precision
|
27 |
+
type: precision
|
28 |
+
value: 0.6869415807560137
|
29 |
+
- name: Recall
|
30 |
+
type: recall
|
31 |
+
value: 0.7467314157639149
|
32 |
+
- name: F1
|
33 |
+
type: f1
|
34 |
+
value: 0.7155897619473779
|
35 |
+
- name: Accuracy
|
36 |
+
type: accuracy
|
37 |
+
value: 0.9527588964414234
|
38 |
+
---
|
39 |
+
|
40 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
41 |
+
should probably proofread and complete it, then remove this comment. -->
|
42 |
+
|
43 |
+
# harem-ner
|
44 |
+
|
45 |
+
This model is a fine-tuned version of [neuralmind/bert-base-portuguese-cased](https://huggingface.co/neuralmind/bert-base-portuguese-cased) on the harem dataset.
|
46 |
+
It achieves the following results on the evaluation set:
|
47 |
+
- Loss: 0.2411
|
48 |
+
- Precision: 0.6869
|
49 |
+
- Recall: 0.7467
|
50 |
+
- F1: 0.7156
|
51 |
+
- Accuracy: 0.9528
|
52 |
+
|
53 |
+
## Model description
|
54 |
+
|
55 |
+
More information needed
|
56 |
+
|
57 |
+
## Intended uses & limitations
|
58 |
+
|
59 |
+
More information needed
|
60 |
+
|
61 |
+
## Training and evaluation data
|
62 |
+
|
63 |
+
More information needed
|
64 |
+
|
65 |
+
## Training procedure
|
66 |
+
|
67 |
+
### Training hyperparameters
|
68 |
+
|
69 |
+
The following hyperparameters were used during training:
|
70 |
+
- learning_rate: 3e-05
|
71 |
+
- train_batch_size: 8
|
72 |
+
- eval_batch_size: 8
|
73 |
+
- seed: 42
|
74 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
75 |
+
- lr_scheduler_type: linear
|
76 |
+
- num_epochs: 300
|
77 |
+
|
78 |
+
### Training results
|
79 |
+
|
80 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
81 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
82 |
+
| No log | 1.0 | 16 | 0.7683 | 0.0 | 0.0 | 0.0 | 0.8358 |
|
83 |
+
| No log | 2.0 | 32 | 0.4727 | 0.3375 | 0.2955 | 0.3151 | 0.8803 |
|
84 |
+
| No log | 3.0 | 48 | 0.3498 | 0.4859 | 0.4838 | 0.4848 | 0.9090 |
|
85 |
+
| No log | 4.0 | 64 | 0.2771 | 0.5651 | 0.6223 | 0.5924 | 0.9354 |
|
86 |
+
| No log | 5.0 | 80 | 0.2309 | 0.5901 | 0.6743 | 0.6294 | 0.9424 |
|
87 |
+
| No log | 6.0 | 96 | 0.2195 | 0.6229 | 0.6997 | 0.6590 | 0.9469 |
|
88 |
+
| No log | 7.0 | 112 | 0.2151 | 0.6239 | 0.6903 | 0.6554 | 0.9480 |
|
89 |
+
| No log | 8.0 | 128 | 0.2178 | 0.6682 | 0.7236 | 0.6948 | 0.9504 |
|
90 |
+
| No log | 9.0 | 144 | 0.2210 | 0.6808 | 0.7426 | 0.7104 | 0.9514 |
|
91 |
+
| No log | 10.0 | 160 | 0.2292 | 0.6863 | 0.7348 | 0.7097 | 0.9512 |
|
92 |
+
| No log | 11.0 | 176 | 0.2312 | 0.6932 | 0.7452 | 0.7183 | 0.9522 |
|
93 |
+
| No log | 12.0 | 192 | 0.2258 | 0.6966 | 0.7523 | 0.7234 | 0.9535 |
|
94 |
+
| No log | 13.0 | 208 | 0.2337 | 0.7076 | 0.7557 | 0.7309 | 0.9537 |
|
95 |
+
| No log | 14.0 | 224 | 0.2299 | 0.6907 | 0.7549 | 0.7214 | 0.9533 |
|
96 |
+
| No log | 15.0 | 240 | 0.2381 | 0.6980 | 0.7553 | 0.7255 | 0.9524 |
|
97 |
+
| No log | 16.0 | 256 | 0.2411 | 0.6869 | 0.7467 | 0.7156 | 0.9528 |
|
98 |
+
|
99 |
+
|
100 |
+
### Framework versions
|
101 |
+
|
102 |
+
- Transformers 4.38.2
|
103 |
+
- Pytorch 2.2.1+cu121
|
104 |
+
- Datasets 2.18.0
|
105 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "neuralmind/bert-base-portuguese-cased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"directionality": "bidi",
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "O",
|
14 |
+
"1": "B-PESSOA",
|
15 |
+
"2": "I-PESSOA",
|
16 |
+
"3": "B-ORGANIZACAO",
|
17 |
+
"4": "I-ORGANIZACAO",
|
18 |
+
"5": "B-LOCAL",
|
19 |
+
"6": "I-LOCAL",
|
20 |
+
"7": "B-TEMPO",
|
21 |
+
"8": "I-TEMPO",
|
22 |
+
"9": "B-VALOR",
|
23 |
+
"10": "I-VALOR",
|
24 |
+
"11": "B-ABSTRACCAO",
|
25 |
+
"12": "I-ABSTRACCAO",
|
26 |
+
"13": "B-ACONTECIMENTO",
|
27 |
+
"14": "I-ACONTECIMENTO",
|
28 |
+
"15": "B-COISA",
|
29 |
+
"16": "I-COISA",
|
30 |
+
"17": "B-OBRA",
|
31 |
+
"18": "I-OBRA",
|
32 |
+
"19": "B-OUTRO",
|
33 |
+
"20": "I-OUTRO"
|
34 |
+
},
|
35 |
+
"initializer_range": 0.02,
|
36 |
+
"intermediate_size": 3072,
|
37 |
+
"label2id": {
|
38 |
+
"B-ABSTRACCAO": 11,
|
39 |
+
"B-ACONTECIMENTO": 13,
|
40 |
+
"B-COISA": 15,
|
41 |
+
"B-LOCAL": 5,
|
42 |
+
"B-OBRA": 17,
|
43 |
+
"B-ORGANIZACAO": 3,
|
44 |
+
"B-OUTRO": 19,
|
45 |
+
"B-PESSOA": 1,
|
46 |
+
"B-TEMPO": 7,
|
47 |
+
"B-VALOR": 9,
|
48 |
+
"I-ABSTRACCAO": 12,
|
49 |
+
"I-ACONTECIMENTO": 14,
|
50 |
+
"I-COISA": 16,
|
51 |
+
"I-LOCAL": 6,
|
52 |
+
"I-OBRA": 18,
|
53 |
+
"I-ORGANIZACAO": 4,
|
54 |
+
"I-OUTRO": 20,
|
55 |
+
"I-PESSOA": 2,
|
56 |
+
"I-TEMPO": 8,
|
57 |
+
"I-VALOR": 10,
|
58 |
+
"O": 0
|
59 |
+
},
|
60 |
+
"layer_norm_eps": 1e-12,
|
61 |
+
"max_position_embeddings": 512,
|
62 |
+
"model_type": "bert",
|
63 |
+
"num_attention_heads": 12,
|
64 |
+
"num_hidden_layers": 12,
|
65 |
+
"output_past": true,
|
66 |
+
"pad_token_id": 0,
|
67 |
+
"pooler_fc_size": 768,
|
68 |
+
"pooler_num_attention_heads": 12,
|
69 |
+
"pooler_num_fc_layers": 3,
|
70 |
+
"pooler_size_per_head": 128,
|
71 |
+
"pooler_type": "first_token_transform",
|
72 |
+
"position_embedding_type": "absolute",
|
73 |
+
"torch_dtype": "float32",
|
74 |
+
"transformers_version": "4.38.2",
|
75 |
+
"type_vocab_size": 2,
|
76 |
+
"use_cache": true,
|
77 |
+
"vocab_size": 29794
|
78 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c36b6497d10e1c745aaff1695cd9799caa8d2c7bff9fe9bd2d56f70fe5f18446
|
3 |
+
size 433418116
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"sep_token": "[SEP]",
|
6 |
+
"unk_token": "[UNK]"
|
7 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"100": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"101": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"102": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"103": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"clean_up_tokenization_spaces": true,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_basic_tokenize": true,
|
47 |
+
"do_lower_case": false,
|
48 |
+
"mask_token": "[MASK]",
|
49 |
+
"model_max_length": 1000000000000000019884624838656,
|
50 |
+
"never_split": null,
|
51 |
+
"pad_token": "[PAD]",
|
52 |
+
"sep_token": "[SEP]",
|
53 |
+
"strip_accents": null,
|
54 |
+
"tokenize_chinese_chars": true,
|
55 |
+
"tokenizer_class": "BertTokenizer",
|
56 |
+
"unk_token": "[UNK]"
|
57 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:35c8a83ba212542ab845af537b2dc66aa46f719902cfa0d451d08c33f1230e48
|
3 |
+
size 4984
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|