adding tokenizer
Browse files- config.json +10 -1
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
config.json
CHANGED
@@ -1,16 +1,25 @@
|
|
1 |
{
|
2 |
-
"
|
|
|
3 |
"BertForMaskedLM"
|
4 |
],
|
5 |
"attention_probs_dropout_prob": 0.1,
|
|
|
|
|
6 |
"hidden_act": "gelu",
|
7 |
"hidden_dropout_prob": 0.1,
|
8 |
"hidden_size": 768,
|
9 |
"initializer_range": 0.02,
|
10 |
"intermediate_size": 3072,
|
|
|
11 |
"max_position_embeddings": 512,
|
|
|
12 |
"num_attention_heads": 12,
|
13 |
"num_hidden_layers": 12,
|
|
|
|
|
|
|
14 |
"type_vocab_size": 2,
|
|
|
15 |
"vocab_size": 30873
|
16 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "yiyanghkust/finbert-pretrain",
|
3 |
+
"architectures": [
|
4 |
"BertForMaskedLM"
|
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 |
"initializer_range": 0.02,
|
13 |
"intermediate_size": 3072,
|
14 |
+
"layer_norm_eps": 1e-12,
|
15 |
"max_position_embeddings": 512,
|
16 |
+
"model_type": "bert",
|
17 |
"num_attention_heads": 12,
|
18 |
"num_hidden_layers": 12,
|
19 |
+
"pad_token_id": 0,
|
20 |
+
"position_embedding_type": "absolute",
|
21 |
+
"transformers_version": "4.10.0",
|
22 |
"type_vocab_size": 2,
|
23 |
+
"use_cache": true,
|
24 |
"vocab_size": 30873
|
25 |
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "special_tokens_map_file": null, "name_or_path": "yiyanghkust/finbert-pretrain", "do_basic_tokenize": true, "never_split": null, "tokenizer_class": "BertTokenizer"}
|