Initial commit
Browse files- README.md +2 -10
- config.json +51 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +66 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
---
|
2 |
language: es
|
3 |
-
license: gpl
|
4 |
tags:
|
5 |
- PyTorch
|
6 |
- Transformers
|
@@ -36,12 +36,6 @@ for ent in ner_pipe(example):
|
|
36 |
print(ent)
|
37 |
```
|
38 |
|
39 |
-
```
|
40 |
-
{'entity_group': 'LOC', 'score': 0.99795026, 'word': ' Sigüeiro', 'start': 22, 'end': 30}
|
41 |
-
{'entity_group': 'LOC', 'score': 0.997823, 'word': ' Camino de Santiago', 'start': 38, 'end': 56}
|
42 |
-
{'entity_group': 'ORG', 'score': 0.98481846, 'word': ' Ministerio de Industria y Competitividad', 'start': 85, 'end': 125}
|
43 |
-
```
|
44 |
-
|
45 |
## Model performance
|
46 |
|
47 |
entity|precision|recall|f1
|
@@ -50,9 +44,7 @@ PER|0.965|0.924|0.944
|
|
50 |
ORG|0.900|0.701|0.788
|
51 |
LOC|0.982|0.985|0.983
|
52 |
MISC|0.798|0.874|0.834
|
53 |
-
|
54 |
-
macro avg|0.911|0.871|0.887
|
55 |
-
weighted avg|0.965|0.968|0.966
|
56 |
|
57 |
## Training procedure
|
58 |
|
|
|
1 |
---
|
2 |
language: es
|
3 |
+
license: gpl
|
4 |
tags:
|
5 |
- PyTorch
|
6 |
- Transformers
|
|
|
36 |
print(ent)
|
37 |
```
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
## Model performance
|
40 |
|
41 |
entity|precision|recall|f1
|
|
|
44 |
ORG|0.900|0.701|0.788
|
45 |
LOC|0.982|0.985|0.983
|
46 |
MISC|0.798|0.874|0.834
|
47 |
+
Overall|0.964|0.968|0.966
|
|
|
|
|
48 |
|
49 |
## Training procedure
|
50 |
|
config.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "PlanTL-GOB-ES/roberta-base-bne",
|
3 |
+
"architectures": [
|
4 |
+
"RobertaForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"finetuning_task": "ner",
|
11 |
+
"gradient_checkpointing": false,
|
12 |
+
"hidden_act": "gelu",
|
13 |
+
"hidden_dropout_prob": 0.0,
|
14 |
+
"hidden_size": 768,
|
15 |
+
"id2label": {
|
16 |
+
"0": "B-LOC",
|
17 |
+
"1": "B-MISC",
|
18 |
+
"2": "B-ORG",
|
19 |
+
"3": "B-PER",
|
20 |
+
"4": "I-LOC",
|
21 |
+
"5": "I-MISC",
|
22 |
+
"6": "I-ORG",
|
23 |
+
"7": "I-PER",
|
24 |
+
"8": "O"
|
25 |
+
},
|
26 |
+
"initializer_range": 0.02,
|
27 |
+
"intermediate_size": 3072,
|
28 |
+
"label2id": {
|
29 |
+
"B-LOC": 0,
|
30 |
+
"B-MISC": 1,
|
31 |
+
"B-ORG": 2,
|
32 |
+
"B-PER": 3,
|
33 |
+
"I-LOC": 4,
|
34 |
+
"I-MISC": 5,
|
35 |
+
"I-ORG": 6,
|
36 |
+
"I-PER": 7,
|
37 |
+
"O": 8
|
38 |
+
},
|
39 |
+
"layer_norm_eps": 1e-05,
|
40 |
+
"max_position_embeddings": 514,
|
41 |
+
"model_type": "roberta",
|
42 |
+
"num_attention_heads": 12,
|
43 |
+
"num_hidden_layers": 12,
|
44 |
+
"pad_token_id": 1,
|
45 |
+
"position_embedding_type": "absolute",
|
46 |
+
"torch_dtype": "float32",
|
47 |
+
"transformers_version": "4.25.1",
|
48 |
+
"type_vocab_size": 1,
|
49 |
+
"use_cache": true,
|
50 |
+
"vocab_size": 50262
|
51 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:54853750d9a7acb21f7ab654bfdbed2a01f46f209e9d1aaf9502cf1952e8c4ed
|
3 |
+
size 496311341
|
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,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"cls_token": {
|
12 |
+
"__type": "AddedToken",
|
13 |
+
"content": "<s>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false
|
18 |
+
},
|
19 |
+
"eos_token": {
|
20 |
+
"__type": "AddedToken",
|
21 |
+
"content": "</s>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false
|
26 |
+
},
|
27 |
+
"errors": "replace",
|
28 |
+
"mask_token": {
|
29 |
+
"__type": "AddedToken",
|
30 |
+
"content": "<mask>",
|
31 |
+
"lstrip": true,
|
32 |
+
"normalized": true,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false
|
35 |
+
},
|
36 |
+
"max_len": 512,
|
37 |
+
"model_max_length": 512,
|
38 |
+
"name_or_path": "PlanTL-GOB-ES/roberta-base-bne",
|
39 |
+
"pad_token": {
|
40 |
+
"__type": "AddedToken",
|
41 |
+
"content": "<pad>",
|
42 |
+
"lstrip": false,
|
43 |
+
"normalized": true,
|
44 |
+
"rstrip": false,
|
45 |
+
"single_word": false
|
46 |
+
},
|
47 |
+
"sep_token": {
|
48 |
+
"__type": "AddedToken",
|
49 |
+
"content": "</s>",
|
50 |
+
"lstrip": false,
|
51 |
+
"normalized": true,
|
52 |
+
"rstrip": false,
|
53 |
+
"single_word": false
|
54 |
+
},
|
55 |
+
"special_tokens_map_file": null,
|
56 |
+
"tokenizer_class": "RobertaTokenizer",
|
57 |
+
"trim_offsets": true,
|
58 |
+
"unk_token": {
|
59 |
+
"__type": "AddedToken",
|
60 |
+
"content": "<unk>",
|
61 |
+
"lstrip": false,
|
62 |
+
"normalized": true,
|
63 |
+
"rstrip": false,
|
64 |
+
"single_word": false
|
65 |
+
}
|
66 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cb1283c01fe20d44d8f566f373f9c0086927abb23b9c7e7c7f8d3a5c64e28dff
|
3 |
+
size 3515
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|