ychafiqui commited on
Commit
ec75fef
·
verified ·
1 Parent(s): 602824a

Upload BertForSequenceClassification

Browse files
Files changed (2) hide show
  1. config.json +13 -15
  2. model.safetensors +3 -0
config.json CHANGED
@@ -1,25 +1,26 @@
1
  {
2
- "_name_or_path": "darija_sentiment_analysis",
3
  "architectures": [
4
  "BertForSequenceClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
  "classifier_dropout": null,
8
- "directionality": "bidi",
 
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
  "id2label": {
13
- "0": "Negative",
14
- "1": "Neutral",
15
- "2": "Positive"
16
  },
17
  "initializer_range": 0.02,
18
  "intermediate_size": 3072,
19
  "label2id": {
20
- "Negative": 0,
21
- "Neutral": 1,
22
- "Positive": 2
23
  },
24
  "layer_norm_eps": 1e-12,
25
  "max_position_embeddings": 512,
@@ -27,14 +28,11 @@
27
  "num_attention_heads": 12,
28
  "num_hidden_layers": 12,
29
  "pad_token_id": 0,
30
- "pooler_fc_size": 768,
31
- "pooler_num_attention_heads": 12,
32
- "pooler_num_fc_layers": 3,
33
- "pooler_size_per_head": 128,
34
- "pooler_type": "first_token_transform",
35
  "position_embedding_type": "absolute",
36
- "transformers_version": "4.30.2",
 
 
37
  "type_vocab_size": 2,
38
  "use_cache": true,
39
- "vocab_size": 64000
40
  }
 
1
  {
2
+ "_name_or_path": "CAMeL-Lab/bert-base-arabic-camelbert-da-sentiment",
3
  "architectures": [
4
  "BertForSequenceClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
  "classifier_dropout": null,
8
+ "finetuning_task": "arabic_sentiment",
9
+ "gradient_checkpointing": false,
10
  "hidden_act": "gelu",
11
  "hidden_dropout_prob": 0.1,
12
  "hidden_size": 768,
13
  "id2label": {
14
+ "0": "positive",
15
+ "1": "negative",
16
+ "2": "neutral"
17
  },
18
  "initializer_range": 0.02,
19
  "intermediate_size": 3072,
20
  "label2id": {
21
+ "negative": 1,
22
+ "neutral": 2,
23
+ "positive": 0
24
  },
25
  "layer_norm_eps": 1e-12,
26
  "max_position_embeddings": 512,
 
28
  "num_attention_heads": 12,
29
  "num_hidden_layers": 12,
30
  "pad_token_id": 0,
 
 
 
 
 
31
  "position_embedding_type": "absolute",
32
+ "problem_type": "single_label_classification",
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.35.2",
35
  "type_vocab_size": 2,
36
  "use_cache": true,
37
+ "vocab_size": 30000
38
  }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7dfd2828b999a0433f84aa79f0c050057d027361d771ef67cf3227edba370558
3
+ size 436358132