Upload RobertaForSequenceClassification
Browse files- README.md +3 -0
- config.json +14 -3
- model.safetensors +2 -2
README.md
CHANGED
@@ -1 +1,4 @@
|
|
|
|
|
|
|
|
1 |
the following is a classifer of text used for psychological classification of texts
|
|
|
1 |
+
---
|
2 |
+
{}
|
3 |
+
---
|
4 |
the following is a classifer of text used for psychological classification of texts
|
config.json
CHANGED
@@ -1,17 +1,28 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "roberta-base",
|
3 |
"architectures": [
|
4 |
-
"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
7 |
"bos_token_id": 0,
|
8 |
"classifier_dropout": null,
|
9 |
"eos_token_id": 2,
|
|
|
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-05,
|
16 |
"max_position_embeddings": 514,
|
17 |
"model_type": "roberta",
|
@@ -20,7 +31,7 @@
|
|
20 |
"pad_token_id": 1,
|
21 |
"position_embedding_type": "absolute",
|
22 |
"torch_dtype": "float32",
|
23 |
-
"transformers_version": "4.
|
24 |
"type_vocab_size": 1,
|
25 |
"use_cache": true,
|
26 |
"vocab_size": 50265
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "cardiffnlp/twitter-roberta-base-sentiment-latest",
|
3 |
"architectures": [
|
4 |
+
"RobertaForSequenceClassification"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
7 |
"bos_token_id": 0,
|
8 |
"classifier_dropout": null,
|
9 |
"eos_token_id": 2,
|
10 |
+
"gradient_checkpointing": false,
|
11 |
"hidden_act": "gelu",
|
12 |
"hidden_dropout_prob": 0.1,
|
13 |
"hidden_size": 768,
|
14 |
+
"id2label": {
|
15 |
+
"0": "negative",
|
16 |
+
"1": "neutral",
|
17 |
+
"2": "positive"
|
18 |
+
},
|
19 |
"initializer_range": 0.02,
|
20 |
"intermediate_size": 3072,
|
21 |
+
"label2id": {
|
22 |
+
"negative": 0,
|
23 |
+
"neutral": 1,
|
24 |
+
"positive": 2
|
25 |
+
},
|
26 |
"layer_norm_eps": 1e-05,
|
27 |
"max_position_embeddings": 514,
|
28 |
"model_type": "roberta",
|
|
|
31 |
"pad_token_id": 1,
|
32 |
"position_embedding_type": "absolute",
|
33 |
"torch_dtype": "float32",
|
34 |
+
"transformers_version": "4.38.2",
|
35 |
"type_vocab_size": 1,
|
36 |
"use_cache": true,
|
37 |
"vocab_size": 50265
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0eca4cde0bf5067aab6c5d90b3977775560a7a352586470eaa32a881f0173d7c
|
3 |
+
size 498615900
|