init
Browse files- README.md +33 -0
- config.json +52 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +1 -0
- tokenizer_config.json +1 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- "zh"
|
4 |
+
thumbnail: "https://user-images.githubusercontent.com/9592150/97142000-cad08e00-179a-11eb-88df-aff9221482d8.png"
|
5 |
+
tags:
|
6 |
+
- "chinese"
|
7 |
+
- "classical chinese"
|
8 |
+
- "literary chinese"
|
9 |
+
- "ancient chinese"
|
10 |
+
- "bert"
|
11 |
+
- "pytorch"
|
12 |
+
- "text classificatio"
|
13 |
+
license: "apache-2.0"
|
14 |
+
pipeline_tag: "text-classification"
|
15 |
+
widget:
|
16 |
+
- text: "子曰:“弟子入则孝,出则悌,谨而信,泛爱众,而亲仁。行有馀力,则以学文。”"
|
17 |
+
---
|
18 |
+
|
19 |
+
# Guwen CLS
|
20 |
+
|
21 |
+
A Classical Chinese Text Classifier.
|
22 |
+
|
23 |
+
See also:
|
24 |
+
|
25 |
+
<a href="https://github.com/ethan-yt/guwen-models">
|
26 |
+
<img align="center" width="400" src="https://github-readme-stats.vercel.app/api/pin/?username=ethan-yt&repo=guwen-models&bg_color=30,e96443,904e95&title_color=fff&text_color=fff&icon_color=fff&show_owner=true" />
|
27 |
+
</a>
|
28 |
+
<a href="https://github.com/ethan-yt/cclue/">
|
29 |
+
<img align="center" width="400" src="https://github-readme-stats.vercel.app/api/pin/?username=ethan-yt&repo=cclue&bg_color=30,e96443,904e95&title_color=fff&text_color=fff&icon_color=fff&show_owner=true" />
|
30 |
+
</a>
|
31 |
+
<a href="https://github.com/ethan-yt/guwenbert/">
|
32 |
+
<img align="center" width="400" src="https://github-readme-stats.vercel.app/api/pin/?username=ethan-yt&repo=guwenbert&bg_color=30,e96443,904e95&title_color=fff&text_color=fff&icon_color=fff&show_owner=true" />
|
33 |
+
</a>
|
config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "output/guwenbert-fs/text_classification/checkpoint-12000",
|
3 |
+
"architectures": [
|
4 |
+
"RobertaForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"finetuning_task": "text_classification",
|
10 |
+
"gradient_checkpointing": false,
|
11 |
+
"hidden_act": "gelu",
|
12 |
+
"hidden_dropout_prob": 0.1,
|
13 |
+
"hidden_size": 768,
|
14 |
+
"id2label": {
|
15 |
+
"0": "易藏",
|
16 |
+
"1": "医藏",
|
17 |
+
"2": "艺藏",
|
18 |
+
"3": "史藏",
|
19 |
+
"4": "佛藏",
|
20 |
+
"5": "集藏",
|
21 |
+
"6": "诗藏",
|
22 |
+
"7": "子藏",
|
23 |
+
"8": "儒藏",
|
24 |
+
"9": "道藏"
|
25 |
+
},
|
26 |
+
"initializer_range": 0.02,
|
27 |
+
"intermediate_size": 3072,
|
28 |
+
"label2id": {
|
29 |
+
"易藏": 0,
|
30 |
+
"医藏": 1,
|
31 |
+
"艺藏": 2,
|
32 |
+
"史藏": 3,
|
33 |
+
"佛藏": 4,
|
34 |
+
"集藏": 5,
|
35 |
+
"诗藏": 6,
|
36 |
+
"子藏": 7,
|
37 |
+
"儒藏": 8,
|
38 |
+
"道藏": 9
|
39 |
+
},
|
40 |
+
"layer_norm_eps": 1e-05,
|
41 |
+
"max_position_embeddings": 514,
|
42 |
+
"model_type": "roberta",
|
43 |
+
"num_attention_heads": 12,
|
44 |
+
"num_hidden_layers": 12,
|
45 |
+
"pad_token_id": 1,
|
46 |
+
"position_embedding_type": "absolute",
|
47 |
+
"tokenizer_class": "BertTokenizer",
|
48 |
+
"transformers_version": "4.5.1",
|
49 |
+
"type_vocab_size": 1,
|
50 |
+
"use_cache": true,
|
51 |
+
"vocab_size": 23292
|
52 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:69704266ee4da58564c6125f4d5fad736f581a167aa83dad839d07fb1cc7ac6a
|
3 |
+
size 415842761
|
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_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, "use_fast": true, "special_tokens_map_file": "models/guwenbert-base-fs/special_tokens_map.json", "name_or_path": "models/guwenbert-base-fs", "do_basic_tokenize": true, "never_split": null}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|