stevillis commited on
Commit
775bd2e
·
verified ·
1 Parent(s): f662c85

Upload BertForSequenceClassification

Browse files
Files changed (3) hide show
  1. README.md +19 -19
  2. config.json +33 -9
  3. model.safetensors +2 -2
README.md CHANGED
@@ -1,7 +1,7 @@
1
  ---
2
  license: mit
3
  language:
4
- - pt
5
  metrics:
6
  accuracy:
7
  Neutral: 0.99
@@ -10,26 +10,26 @@ metrics:
10
  base_model: neuralmind/bert-base-portuguese-cased
11
  library_name: transformers
12
  tags:
13
- - sentiment analysis
14
- - nlp
15
- - glassdoor
16
  pipeline_tag: text-classification
17
  widget:
18
- - text: "Ambiente acolhedor e boa comunicação."
19
- example_title: Positive sample
20
- output:
21
- - label: Positive
22
- score: 0.9998
23
- - text: "Mal remunerado, fora isso tranquilo."
24
- example_title: Negative sample
25
- output:
26
- - label: Negative
27
- score: 0.9996
28
- - text: "nenhum contra com esta empresa"
29
- example_title: Neutral sample
30
- output:
31
- - label: Neutral
32
- score: 0.9998
33
  ---
34
 
35
  ## Model Instructions
 
1
  ---
2
  license: mit
3
  language:
4
+ - pt
5
  metrics:
6
  accuracy:
7
  Neutral: 0.99
 
10
  base_model: neuralmind/bert-base-portuguese-cased
11
  library_name: transformers
12
  tags:
13
+ - sentiment analysis
14
+ - nlp
15
+ - glassdoor
16
  pipeline_tag: text-classification
17
  widget:
18
+ - text: Ambiente acolhedor e boa comunicação.
19
+ example_title: Positive sample
20
+ output:
21
+ - label: Positive
22
+ score: 0.9998
23
+ - text: Mal remunerado, fora isso tranquilo.
24
+ example_title: Negative sample
25
+ output:
26
+ - label: Negative
27
+ score: 0.9996
28
+ - text: nenhum contra com esta empresa
29
+ example_title: Neutral sample
30
+ output:
31
+ - label: Neutral
32
+ score: 0.9998
33
  ---
34
 
35
  ## Model Instructions
config.json CHANGED
@@ -1,19 +1,43 @@
1
  {
 
2
  "architectures": [
3
- "GlassdoorReviewsClassifierFreezing"
4
  ],
 
 
 
 
 
5
  "hidden_size": 768,
6
  "id2label": {
7
- "0": "Neutral",
8
- "1": "Positive",
9
- "2": "Negative"
10
  },
 
 
11
  "label2id": {
12
- "Negative": 2,
13
- "Neutral": 0,
14
- "Positive": 1
15
  },
16
- "model_type": "portuguese_glassdoor_sentiment_classifier",
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  "torch_dtype": "float32",
18
- "transformers_version": "4.47.1"
 
 
 
19
  }
 
1
  {
2
+ "_name_or_path": "neuralmind/bert-base-portuguese-cased",
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": "neutral",
14
+ "1": "positive",
15
+ "2": "negative"
16
  },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
  "label2id": {
20
+ "negative": 2,
21
+ "neutral": 0,
22
+ "positive": 1
23
  },
24
+ "layer_norm_eps": 1e-12,
25
+ "max_position_embeddings": 512,
26
+ "model_type": "bert",
27
+ "num_attention_heads": 12,
28
+ "num_hidden_layers": 12,
29
+ "output_past": true,
30
+ "pad_token_id": 0,
31
+ "pooler_fc_size": 768,
32
+ "pooler_num_attention_heads": 12,
33
+ "pooler_num_fc_layers": 3,
34
+ "pooler_size_per_head": 128,
35
+ "pooler_type": "first_token_transform",
36
+ "position_embedding_type": "absolute",
37
+ "problem_type": "single_label_classification",
38
  "torch_dtype": "float32",
39
+ "transformers_version": "4.47.1",
40
+ "type_vocab_size": 2,
41
+ "use_cache": true,
42
+ "vocab_size": 29794
43
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:df9f3f6ad4f9d19a48456f092d1af205139b08ae7948ff7f4e42b60a4e69f29e
3
- size 436780628
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4fc652ffd6d7e4100eddfdabc7a57dfb2f1799e984a0841d53cbd4156cb48d9
3
+ size 435725300