ashishpatel26
commited on
Commit
•
93ecabd
1
Parent(s):
6861ac5
ashishpatel26/span-marker-roberta-base-conll03
Browse files- README.md +67 -0
- added_tokens.json +4 -0
- config.json +137 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +15 -0
- tokenizer.json +0 -0
- tokenizer_config.json +16 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: ''
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
datasets:
|
6 |
+
- conll2003
|
7 |
+
model-index:
|
8 |
+
- name: span-marker-roberta-base-conll03
|
9 |
+
results: []
|
10 |
+
---
|
11 |
+
|
12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
13 |
+
should probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
# span-marker-roberta-base-conll03
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [](https://huggingface.co/) on the conll2003 dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 0.0121
|
20 |
+
- Overall Precision: 0.9357
|
21 |
+
- Overall Recall: 0.9346
|
22 |
+
- Overall F1: 0.9351
|
23 |
+
- Overall Accuracy: 0.9870
|
24 |
+
|
25 |
+
## Model description
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Intended uses & limitations
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training and evaluation data
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training procedure
|
38 |
+
|
39 |
+
### Training hyperparameters
|
40 |
+
|
41 |
+
The following hyperparameters were used during training:
|
42 |
+
- learning_rate: 1e-05
|
43 |
+
- train_batch_size: 4
|
44 |
+
- eval_batch_size: 4
|
45 |
+
- seed: 42
|
46 |
+
- gradient_accumulation_steps: 2
|
47 |
+
- total_train_batch_size: 8
|
48 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
49 |
+
- lr_scheduler_type: linear
|
50 |
+
- lr_scheduler_warmup_ratio: 0.1
|
51 |
+
- num_epochs: 1
|
52 |
+
|
53 |
+
### Training results
|
54 |
+
|
55 |
+
| Training Loss | Epoch | Step | Validation Loss | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
|
56 |
+
|:-------------:|:-----:|:----:|:---------------:|:-----------------:|:--------------:|:----------:|:----------------:|
|
57 |
+
| 0.0351 | 0.28 | 500 | 0.0272 | 0.8928 | 0.8251 | 0.8576 | 0.9662 |
|
58 |
+
| 0.0209 | 0.55 | 1000 | 0.0168 | 0.9066 | 0.9167 | 0.9116 | 0.9820 |
|
59 |
+
| 0.0169 | 0.83 | 1500 | 0.0120 | 0.9380 | 0.9291 | 0.9336 | 0.9863 |
|
60 |
+
|
61 |
+
|
62 |
+
### Framework versions
|
63 |
+
|
64 |
+
- Transformers 4.32.1
|
65 |
+
- Pytorch 2.0.1+cu118
|
66 |
+
- Datasets 2.14.4
|
67 |
+
- Tokenizers 0.13.3
|
added_tokens.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<end>": 50266,
|
3 |
+
"<start>": 50265
|
4 |
+
}
|
config.json
ADDED
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"SpanMarkerModel"
|
4 |
+
],
|
5 |
+
"encoder": {
|
6 |
+
"_name_or_path": "roberta-base",
|
7 |
+
"add_cross_attention": false,
|
8 |
+
"architectures": [
|
9 |
+
"RobertaForMaskedLM"
|
10 |
+
],
|
11 |
+
"attention_probs_dropout_prob": 0.1,
|
12 |
+
"bad_words_ids": null,
|
13 |
+
"begin_suppress_tokens": null,
|
14 |
+
"bos_token_id": 0,
|
15 |
+
"chunk_size_feed_forward": 0,
|
16 |
+
"classifier_dropout": null,
|
17 |
+
"cross_attention_hidden_size": null,
|
18 |
+
"decoder_start_token_id": null,
|
19 |
+
"diversity_penalty": 0.0,
|
20 |
+
"do_sample": false,
|
21 |
+
"early_stopping": false,
|
22 |
+
"encoder_no_repeat_ngram_size": 0,
|
23 |
+
"eos_token_id": 2,
|
24 |
+
"exponential_decay_length_penalty": null,
|
25 |
+
"finetuning_task": null,
|
26 |
+
"forced_bos_token_id": null,
|
27 |
+
"forced_eos_token_id": null,
|
28 |
+
"hidden_act": "gelu",
|
29 |
+
"hidden_dropout_prob": 0.1,
|
30 |
+
"hidden_size": 768,
|
31 |
+
"id2label": {
|
32 |
+
"0": "O",
|
33 |
+
"1": "B-PER",
|
34 |
+
"2": "I-PER",
|
35 |
+
"3": "B-ORG",
|
36 |
+
"4": "I-ORG",
|
37 |
+
"5": "B-LOC",
|
38 |
+
"6": "I-LOC",
|
39 |
+
"7": "B-MISC",
|
40 |
+
"8": "I-MISC"
|
41 |
+
},
|
42 |
+
"initializer_range": 0.02,
|
43 |
+
"intermediate_size": 3072,
|
44 |
+
"is_decoder": false,
|
45 |
+
"is_encoder_decoder": false,
|
46 |
+
"label2id": {
|
47 |
+
"B-LOC": 5,
|
48 |
+
"B-MISC": 7,
|
49 |
+
"B-ORG": 3,
|
50 |
+
"B-PER": 1,
|
51 |
+
"I-LOC": 6,
|
52 |
+
"I-MISC": 8,
|
53 |
+
"I-ORG": 4,
|
54 |
+
"I-PER": 2,
|
55 |
+
"O": 0
|
56 |
+
},
|
57 |
+
"layer_norm_eps": 1e-05,
|
58 |
+
"length_penalty": 1.0,
|
59 |
+
"max_length": 20,
|
60 |
+
"max_position_embeddings": 514,
|
61 |
+
"min_length": 0,
|
62 |
+
"model_type": "roberta",
|
63 |
+
"no_repeat_ngram_size": 0,
|
64 |
+
"num_attention_heads": 12,
|
65 |
+
"num_beam_groups": 1,
|
66 |
+
"num_beams": 1,
|
67 |
+
"num_hidden_layers": 12,
|
68 |
+
"num_return_sequences": 1,
|
69 |
+
"output_attentions": false,
|
70 |
+
"output_hidden_states": false,
|
71 |
+
"output_scores": false,
|
72 |
+
"pad_token_id": 1,
|
73 |
+
"position_embedding_type": "absolute",
|
74 |
+
"prefix": null,
|
75 |
+
"problem_type": null,
|
76 |
+
"pruned_heads": {},
|
77 |
+
"remove_invalid_values": false,
|
78 |
+
"repetition_penalty": 1.0,
|
79 |
+
"return_dict": true,
|
80 |
+
"return_dict_in_generate": false,
|
81 |
+
"sep_token_id": null,
|
82 |
+
"suppress_tokens": null,
|
83 |
+
"task_specific_params": null,
|
84 |
+
"temperature": 1.0,
|
85 |
+
"tf_legacy_loss": false,
|
86 |
+
"tie_encoder_decoder": false,
|
87 |
+
"tie_word_embeddings": true,
|
88 |
+
"tokenizer_class": null,
|
89 |
+
"top_k": 50,
|
90 |
+
"top_p": 1.0,
|
91 |
+
"torch_dtype": null,
|
92 |
+
"torchscript": false,
|
93 |
+
"transformers_version": "4.32.1",
|
94 |
+
"type_vocab_size": 1,
|
95 |
+
"typical_p": 1.0,
|
96 |
+
"use_bfloat16": false,
|
97 |
+
"use_cache": true,
|
98 |
+
"vocab_size": 50267
|
99 |
+
},
|
100 |
+
"entity_max_length": 6,
|
101 |
+
"id2label": {
|
102 |
+
"0": "O",
|
103 |
+
"1": "LOC",
|
104 |
+
"2": "MISC",
|
105 |
+
"3": "ORG",
|
106 |
+
"4": "PER"
|
107 |
+
},
|
108 |
+
"id2reduced_id": {
|
109 |
+
"0": 0,
|
110 |
+
"1": 4,
|
111 |
+
"2": 4,
|
112 |
+
"3": 3,
|
113 |
+
"4": 3,
|
114 |
+
"5": 1,
|
115 |
+
"6": 1,
|
116 |
+
"7": 2,
|
117 |
+
"8": 2
|
118 |
+
},
|
119 |
+
"label2id": {
|
120 |
+
"LOC": 1,
|
121 |
+
"MISC": 2,
|
122 |
+
"O": 0,
|
123 |
+
"ORG": 3,
|
124 |
+
"PER": 4
|
125 |
+
},
|
126 |
+
"marker_max_length": 128,
|
127 |
+
"max_next_context": null,
|
128 |
+
"max_prev_context": null,
|
129 |
+
"model_max_length": 256,
|
130 |
+
"model_max_length_default": 512,
|
131 |
+
"model_type": "span-marker",
|
132 |
+
"span_marker_version": "1.3.0",
|
133 |
+
"torch_dtype": "float32",
|
134 |
+
"trained_with_document_context": false,
|
135 |
+
"transformers_version": "4.32.1",
|
136 |
+
"vocab_size": 50267
|
137 |
+
}
|
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:3b8e6b68a3e516ec066e67409500193aa7aaff22b71a4de3138c932cab354883
|
3 |
+
size 498688369
|
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
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": true,
|
3 |
+
"bos_token": "<s>",
|
4 |
+
"clean_up_tokenization_spaces": true,
|
5 |
+
"cls_token": "<s>",
|
6 |
+
"entity_max_length": 6,
|
7 |
+
"eos_token": "</s>",
|
8 |
+
"errors": "replace",
|
9 |
+
"mask_token": "<mask>",
|
10 |
+
"model_max_length": 256,
|
11 |
+
"pad_token": "<pad>",
|
12 |
+
"sep_token": "</s>",
|
13 |
+
"tokenizer_class": "RobertaTokenizer",
|
14 |
+
"trim_offsets": true,
|
15 |
+
"unk_token": "<unk>"
|
16 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7abccf3e38522e5038e7a44b01c4c127594c515161e0c6814c56aa6466d7fb21
|
3 |
+
size 4091
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|