Upload RoCBertForSequenceClassification
Browse files- config.json +61 -0
- pytorch_model.bin +3 -0
config.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "weiweishi/roc-bert-base-zh",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"RoCBertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"concat_input": true,
|
| 9 |
+
"directionality": "bidi",
|
| 10 |
+
"enable_cls": true,
|
| 11 |
+
"enable_pronunciation": true,
|
| 12 |
+
"enable_shape": true,
|
| 13 |
+
"hidden_act": "gelu",
|
| 14 |
+
"hidden_dropout_prob": 0.1,
|
| 15 |
+
"hidden_size": 768,
|
| 16 |
+
"id2label": [
|
| 17 |
+
{
|
| 18 |
+
"0": "mainland China politics",
|
| 19 |
+
"1": "Hong Kong - Macau politics",
|
| 20 |
+
"2": "International news",
|
| 21 |
+
"3": "financial news",
|
| 22 |
+
"4": "culture",
|
| 23 |
+
"5": "entertainment",
|
| 24 |
+
"6": "sports"
|
| 25 |
+
}
|
| 26 |
+
],
|
| 27 |
+
"initializer_range": 0.02,
|
| 28 |
+
"intermediate_size": 3072,
|
| 29 |
+
"label2id": [
|
| 30 |
+
{
|
| 31 |
+
"Hong Kong - Macau politics": 1,
|
| 32 |
+
"International news": 2,
|
| 33 |
+
"culture": 4,
|
| 34 |
+
"entertainment": 5,
|
| 35 |
+
"financial news": 3,
|
| 36 |
+
"mainland China politics": 0,
|
| 37 |
+
"sports": 6
|
| 38 |
+
}
|
| 39 |
+
],
|
| 40 |
+
"layer_norm_eps": 1e-12,
|
| 41 |
+
"max_position_embeddings": 512,
|
| 42 |
+
"model_type": "roc_bert",
|
| 43 |
+
"num_attention_heads": 12,
|
| 44 |
+
"num_hidden_layers": 12,
|
| 45 |
+
"pad_token_id": 0,
|
| 46 |
+
"pooler_fc_size": 768,
|
| 47 |
+
"pooler_num_attention_heads": 12,
|
| 48 |
+
"pooler_num_fc_layers": 3,
|
| 49 |
+
"pooler_size_per_head": 128,
|
| 50 |
+
"pooler_type": "first_token_transform",
|
| 51 |
+
"position_embedding_type": "absolute",
|
| 52 |
+
"pronunciation_embed_dim": 768,
|
| 53 |
+
"pronunciation_vocab_size": 910,
|
| 54 |
+
"shape_embed_dim": 512,
|
| 55 |
+
"shape_vocab_size": 24858,
|
| 56 |
+
"torch_dtype": "float32",
|
| 57 |
+
"transformers_version": "4.25.0.dev0",
|
| 58 |
+
"type_vocab_size": 2,
|
| 59 |
+
"use_cache": true,
|
| 60 |
+
"vocab_size": 21128
|
| 61 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18a29d3651d007728f2b7aaa227be6074b448dc87f1b67c9739c17ba29fcad09
|
| 3 |
+
size 469146277
|