Upload TFRobertaForTokenClassification
Browse files- README.md +56 -1
- config.json +64 -0
- tf_model.h5 +3 -0
README.md
CHANGED
@@ -1,3 +1,58 @@
|
|
1 |
---
|
2 |
-
license:
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
license: mit
|
3 |
+
base_model: FacebookAI/roberta-large
|
4 |
+
tags:
|
5 |
+
- generated_from_keras_callback
|
6 |
+
model-index:
|
7 |
+
- name: ner-test
|
8 |
+
results: []
|
9 |
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
12 |
+
probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# ner-test
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [FacebookAI/roberta-large](https://huggingface.co/FacebookAI/roberta-large) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Train Loss: 0.1164
|
19 |
+
- Validation Loss: 0.0878
|
20 |
+
- Train Precision: 0.8442
|
21 |
+
- Train Recall: 0.8358
|
22 |
+
- Train F1: 0.8400
|
23 |
+
- Train Accuracy: 0.9718
|
24 |
+
- Epoch: 0
|
25 |
+
|
26 |
+
## Model description
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Intended uses & limitations
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Training and evaluation data
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training procedure
|
39 |
+
|
40 |
+
### Training hyperparameters
|
41 |
+
|
42 |
+
The following hyperparameters were used during training:
|
43 |
+
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 4795, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
|
44 |
+
- training_precision: float32
|
45 |
+
|
46 |
+
### Training results
|
47 |
+
|
48 |
+
| Train Loss | Validation Loss | Train Precision | Train Recall | Train F1 | Train Accuracy | Epoch |
|
49 |
+
|:----------:|:---------------:|:---------------:|:------------:|:--------:|:--------------:|:-----:|
|
50 |
+
| 0.1164 | 0.0878 | 0.8442 | 0.8358 | 0.8400 | 0.9718 | 0 |
|
51 |
+
|
52 |
+
|
53 |
+
### Framework versions
|
54 |
+
|
55 |
+
- Transformers 4.35.2
|
56 |
+
- TensorFlow 2.15.0
|
57 |
+
- Datasets 2.17.1
|
58 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "FacebookAI/roberta-large",
|
3 |
+
"architectures": [
|
4 |
+
"RobertaForTokenClassification"
|
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": 1024,
|
13 |
+
"id2label": {
|
14 |
+
"0": "O",
|
15 |
+
"1": "B-eve",
|
16 |
+
"2": "I-eve",
|
17 |
+
"3": "B-org",
|
18 |
+
"4": "I-org",
|
19 |
+
"5": "B-gpe",
|
20 |
+
"6": "I-gpe",
|
21 |
+
"7": "B-geo",
|
22 |
+
"8": "I-geo",
|
23 |
+
"9": "B-nat",
|
24 |
+
"10": "I-nat",
|
25 |
+
"11": "B-per",
|
26 |
+
"12": "I-per",
|
27 |
+
"13": "B-art",
|
28 |
+
"14": "I-art",
|
29 |
+
"15": "B-tim",
|
30 |
+
"16": "I-tim"
|
31 |
+
},
|
32 |
+
"initializer_range": 0.02,
|
33 |
+
"intermediate_size": 4096,
|
34 |
+
"label2id": {
|
35 |
+
"B-art": 13,
|
36 |
+
"B-eve": 1,
|
37 |
+
"B-geo": 7,
|
38 |
+
"B-gpe": 5,
|
39 |
+
"B-nat": 9,
|
40 |
+
"B-org": 3,
|
41 |
+
"B-per": 11,
|
42 |
+
"B-tim": 15,
|
43 |
+
"I-art": 14,
|
44 |
+
"I-eve": 2,
|
45 |
+
"I-geo": 8,
|
46 |
+
"I-gpe": 6,
|
47 |
+
"I-nat": 10,
|
48 |
+
"I-org": 4,
|
49 |
+
"I-per": 12,
|
50 |
+
"I-tim": 16,
|
51 |
+
"O": 0
|
52 |
+
},
|
53 |
+
"layer_norm_eps": 1e-05,
|
54 |
+
"max_position_embeddings": 514,
|
55 |
+
"model_type": "roberta",
|
56 |
+
"num_attention_heads": 16,
|
57 |
+
"num_hidden_layers": 24,
|
58 |
+
"pad_token_id": 1,
|
59 |
+
"position_embedding_type": "absolute",
|
60 |
+
"transformers_version": "4.35.2",
|
61 |
+
"type_vocab_size": 1,
|
62 |
+
"use_cache": true,
|
63 |
+
"vocab_size": 50265
|
64 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ef7f2e05428de7a6b0785660dc009450f1fdcc1d8027d314a4170105d4d93e9f
|
3 |
+
size 1417861992
|