ethanyt commited on
Commit
76f8cc0
1 Parent(s): 3d9efbf
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
+ - "sentiment classificatio"
13
+ license: "apache-2.0"
14
+ pipeline_tag: "text-classification"
15
+ widget:
16
+ - text: "滚滚长江东逝水,浪花淘尽英雄"
17
+ ---
18
+
19
+ # Guwen Sent
20
+
21
+ A Classical Chinese Poem Sentiment 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,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "output/guwenbert/fspc/checkpoint-400",
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": "fspc",
10
+ "gradient_checkpointing": false,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "Neg",
16
+ "1": "ImpNeg",
17
+ "2": "Nerual",
18
+ "3": "ImpPos",
19
+ "4": "Pos"
20
+ },
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 3072,
23
+ "label2id": {
24
+ "Neg": 0,
25
+ "ImpNeg": 1,
26
+ "Nerual": 2,
27
+ "ImpPos": 3,
28
+ "Pos": 4
29
+ },
30
+ "layer_norm_eps": 1e-05,
31
+ "max_position_embeddings": 514,
32
+ "model_type": "roberta",
33
+ "num_attention_heads": 12,
34
+ "num_hidden_layers": 12,
35
+ "pad_token_id": 1,
36
+ "position_embedding_type": "absolute",
37
+ "tokenizer_class": "BertTokenizer",
38
+ "transformers_version": "4.5.1",
39
+ "type_vocab_size": 1,
40
+ "use_cache": true,
41
+ "vocab_size": 23292
42
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4f7f95fbfcf7b6807ab20c4362edd259c6cc9cf7745b10ae0859b6e4583d0fe
3
+ size 415827401
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