Commit
·
8f7efa0
1
Parent(s):
5a627db
Upload TFBertForSequenceClassification
Browse files- README.md +49 -0
- config.json +74 -0
- tf_model.h5 +3 -0
README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: bert-base-uncased
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_keras_callback
|
| 6 |
+
model-index:
|
| 7 |
+
- name: BERT_Intent_Classifier
|
| 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 |
+
# BERT_Intent_Classifier
|
| 15 |
+
|
| 16 |
+
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
|
| 17 |
+
It achieves the following results on the evaluation set:
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
## Model description
|
| 21 |
+
|
| 22 |
+
More information needed
|
| 23 |
+
|
| 24 |
+
## Intended uses & limitations
|
| 25 |
+
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
+
## Training and evaluation data
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Training procedure
|
| 33 |
+
|
| 34 |
+
### Training hyperparameters
|
| 35 |
+
|
| 36 |
+
The following hyperparameters were used during training:
|
| 37 |
+
- optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': True, 'is_legacy_optimizer': False, 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 160, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
|
| 38 |
+
- training_precision: float32
|
| 39 |
+
|
| 40 |
+
### Training results
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
### Framework versions
|
| 45 |
+
|
| 46 |
+
- Transformers 4.35.2
|
| 47 |
+
- TensorFlow 2.15.0
|
| 48 |
+
- Datasets 2.16.1
|
| 49 |
+
- Tokenizers 0.15.0
|
config.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "bert-base-uncased",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"gradient_checkpointing": false,
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.1,
|
| 11 |
+
"hidden_size": 768,
|
| 12 |
+
"id2label": {
|
| 13 |
+
"0": "CurrentHumanQuery",
|
| 14 |
+
"1": "SelfAware",
|
| 15 |
+
"2": "CourtesyGreetingResponse",
|
| 16 |
+
"3": "Shutup",
|
| 17 |
+
"4": "GreetingResponse",
|
| 18 |
+
"5": "NotTalking2U",
|
| 19 |
+
"6": "GoodBye",
|
| 20 |
+
"7": "PodBayDoorResponse",
|
| 21 |
+
"8": "Clever",
|
| 22 |
+
"9": "NameQuery",
|
| 23 |
+
"10": "CourtesyGreeting",
|
| 24 |
+
"11": "Thanks",
|
| 25 |
+
"12": "Gossip",
|
| 26 |
+
"13": "UnderstandQuery",
|
| 27 |
+
"14": "CourtesyGoodBye",
|
| 28 |
+
"15": "WhoAmI",
|
| 29 |
+
"16": "Greeting",
|
| 30 |
+
"17": "Swearing",
|
| 31 |
+
"18": "RealNameQuery",
|
| 32 |
+
"19": "TimeQuery",
|
| 33 |
+
"20": "Jokes",
|
| 34 |
+
"21": "PodBayDoor"
|
| 35 |
+
},
|
| 36 |
+
"initializer_range": 0.02,
|
| 37 |
+
"intermediate_size": 3072,
|
| 38 |
+
"label2id": {
|
| 39 |
+
"Clever": 8,
|
| 40 |
+
"CourtesyGoodBye": 14,
|
| 41 |
+
"CourtesyGreeting": 10,
|
| 42 |
+
"CourtesyGreetingResponse": 2,
|
| 43 |
+
"CurrentHumanQuery": 0,
|
| 44 |
+
"GoodBye": 6,
|
| 45 |
+
"Gossip": 12,
|
| 46 |
+
"Greeting": 16,
|
| 47 |
+
"GreetingResponse": 4,
|
| 48 |
+
"Jokes": 20,
|
| 49 |
+
"NameQuery": 9,
|
| 50 |
+
"NotTalking2U": 5,
|
| 51 |
+
"PodBayDoor": 21,
|
| 52 |
+
"PodBayDoorResponse": 7,
|
| 53 |
+
"RealNameQuery": 18,
|
| 54 |
+
"SelfAware": 1,
|
| 55 |
+
"Shutup": 3,
|
| 56 |
+
"Swearing": 17,
|
| 57 |
+
"Thanks": 11,
|
| 58 |
+
"TimeQuery": 19,
|
| 59 |
+
"UnderstandQuery": 13,
|
| 60 |
+
"WhoAmI": 15
|
| 61 |
+
},
|
| 62 |
+
"layer_norm_eps": 1e-12,
|
| 63 |
+
"max_position_embeddings": 512,
|
| 64 |
+
"model_type": "bert",
|
| 65 |
+
"num_attention_heads": 12,
|
| 66 |
+
"num_hidden_layers": 12,
|
| 67 |
+
"pad_token_id": 0,
|
| 68 |
+
"position_embedding_type": "absolute",
|
| 69 |
+
"problem_type": "multi_label_classification",
|
| 70 |
+
"transformers_version": "4.35.2",
|
| 71 |
+
"type_vocab_size": 2,
|
| 72 |
+
"use_cache": true,
|
| 73 |
+
"vocab_size": 30522
|
| 74 |
+
}
|
tf_model.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bcbb7791e8be41f7ab61d2b9536b34b8370735ac4aa5cf908f030691cb1bafb9
|
| 3 |
+
size 438284648
|