DeepLearning101 commited on
Commit
eaa77d0
·
verified ·
1 Parent(s): 5eedde2

Upload 8 files

Browse files

outputs-macbert4csc_20240428


- ERNIE for Chinese Spelling Correction 繁體中文
- MacBertMaskedLM For Chinese Spelling Correction 繁體中文
- wikipedia-zh-20230720-filtered.json 繁體中文
- Automatic Corpus Generation-zh 繁體中文

- [那些自然語言處理 (Natural Language Processing, NLP) 踩的坑 -- 文本糾錯](https://blog.twman.org/2021/04/NLP.html#:~:text=%E4%BA%86%E9%BB%9E%E6%84%9F%E8%A6%BA%E3%80%82-,%E6%96%87%E6%9C%AC%E7%B3%BE%E9%8C%AF%E9%BB%98%E9%BB%98%E6%9B%B4%E6%96%B0,-%E5%BE%8C%E4%BE%86%E3%80%82%E3%80%82%E3%80%82%E7%96%AB%E6%83%85)

outputs-macbert4csc_20240428/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "hfl/chinese-macbert-base",
3
+ "architectures": [
4
+ "BertForMaskedLM"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "directionality": "bidi",
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-12,
16
+ "max_position_embeddings": 512,
17
+ "model_type": "bert",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "pad_token_id": 0,
21
+ "pooler_fc_size": 768,
22
+ "pooler_num_attention_heads": 12,
23
+ "pooler_num_fc_layers": 3,
24
+ "pooler_size_per_head": 128,
25
+ "pooler_type": "first_token_transform",
26
+ "position_embedding_type": "absolute",
27
+ "torch_dtype": "float32",
28
+ "transformers_version": "4.28.1",
29
+ "type_vocab_size": 2,
30
+ "use_cache": true,
31
+ "vocab_size": 21128
32
+ }
outputs-macbert4csc_20240428/epoch=10-val_loss=0.01.ckpt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0804c10281bb861eed4b9bf42f12bc318a44ca249b54fa43e2299028cb4763e2
3
+ size 1227782734
outputs-macbert4csc_20240428/generation_config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "pad_token_id": 0,
4
+ "transformers_version": "4.28.1"
5
+ }
outputs-macbert4csc_20240428/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69b6b856ce2d32a3286f82e2fe0ecc6a4f326a4863bd291b12e707cb7d7a41c9
3
+ size 409232246
outputs-macbert4csc_20240428/special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
outputs-macbert4csc_20240428/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
outputs-macbert4csc_20240428/tokenizer_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "mask_token": "[MASK]",
6
+ "model_max_length": 1000000000000000019884624838656,
7
+ "pad_token": "[PAD]",
8
+ "sep_token": "[SEP]",
9
+ "strip_accents": null,
10
+ "tokenize_chinese_chars": true,
11
+ "tokenizer_class": "BertTokenizer",
12
+ "unk_token": "[UNK]"
13
+ }
outputs-macbert4csc_20240428/vocab.txt ADDED
The diff for this file is too large to render. See raw diff