🦊 Foxy-Core sentiment v2.0.0
Browse files- README.md +41 -0
- config.json +50 -0
- model.safetensors +3 -0
- sent2id.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +14 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- pt
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- foxy-core
|
| 7 |
+
- nlp
|
| 8 |
+
- chatbot
|
| 9 |
+
- portuguese
|
| 10 |
+
- sentiment
|
| 11 |
+
pipeline_tag: text-classification
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# 🦊 Foxy-Core — SENTIMENT v2.0.0
|
| 15 |
+
|
| 16 |
+
Motor NLP central para chatbots multi-vertical.
|
| 17 |
+
|
| 18 |
+
## Uso
|
| 19 |
+
|
| 20 |
+
```python
|
| 21 |
+
from transformers import pipeline
|
| 22 |
+
|
| 23 |
+
pipe = pipeline(
|
| 24 |
+
"text-classification",
|
| 25 |
+
model="MattosDev/foxy-core-sentiment"
|
| 26 |
+
)
|
| 27 |
+
|
| 28 |
+
result = pipe("quero fazer um pedido")
|
| 29 |
+
print(result)
|
| 30 |
+
```
|
| 31 |
+
Verticais suportadas
|
| 32 |
+
|
| 33 |
+
🏥 Farmácias
|
| 34 |
+
|
| 35 |
+
🍔 Fast Foods
|
| 36 |
+
|
| 37 |
+
💻 Tecnologia
|
| 38 |
+
|
| 39 |
+
Base Model
|
| 40 |
+
|
| 41 |
+
BERTimbau (neuralmind/bert-base-portuguese-cased)
|
config.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_cross_attention": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": null,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"directionality": "bidi",
|
| 10 |
+
"dtype": "float32",
|
| 11 |
+
"eos_token_id": null,
|
| 12 |
+
"hidden_act": "gelu",
|
| 13 |
+
"hidden_dropout_prob": 0.1,
|
| 14 |
+
"hidden_size": 768,
|
| 15 |
+
"id2label": {
|
| 16 |
+
"0": "muito_negativo",
|
| 17 |
+
"1": "negativo",
|
| 18 |
+
"2": "neutro",
|
| 19 |
+
"3": "positivo",
|
| 20 |
+
"4": "muito_positivo"
|
| 21 |
+
},
|
| 22 |
+
"initializer_range": 0.02,
|
| 23 |
+
"intermediate_size": 3072,
|
| 24 |
+
"is_decoder": false,
|
| 25 |
+
"label2id": {
|
| 26 |
+
"muito_negativo": 0,
|
| 27 |
+
"muito_positivo": 4,
|
| 28 |
+
"negativo": 1,
|
| 29 |
+
"neutro": 2,
|
| 30 |
+
"positivo": 3
|
| 31 |
+
},
|
| 32 |
+
"layer_norm_eps": 1e-12,
|
| 33 |
+
"max_position_embeddings": 512,
|
| 34 |
+
"model_type": "bert",
|
| 35 |
+
"num_attention_heads": 12,
|
| 36 |
+
"num_hidden_layers": 12,
|
| 37 |
+
"output_past": true,
|
| 38 |
+
"pad_token_id": 0,
|
| 39 |
+
"pooler_fc_size": 768,
|
| 40 |
+
"pooler_num_attention_heads": 12,
|
| 41 |
+
"pooler_num_fc_layers": 3,
|
| 42 |
+
"pooler_size_per_head": 128,
|
| 43 |
+
"pooler_type": "first_token_transform",
|
| 44 |
+
"problem_type": "single_label_classification",
|
| 45 |
+
"tie_word_embeddings": true,
|
| 46 |
+
"transformers_version": "5.0.0",
|
| 47 |
+
"type_vocab_size": 2,
|
| 48 |
+
"use_cache": false,
|
| 49 |
+
"vocab_size": 29794
|
| 50 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40a97750be67c8a153bced4a9f867489dd72a6be3600c06870780d09e840959a
|
| 3 |
+
size 435731428
|
sent2id.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"muito_negativo": 0,
|
| 3 |
+
"negativo": 1,
|
| 4 |
+
"neutro": 2,
|
| 5 |
+
"positivo": 3,
|
| 6 |
+
"muito_positivo": 4
|
| 7 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"cls_token": "[CLS]",
|
| 4 |
+
"do_lower_case": false,
|
| 5 |
+
"is_local": false,
|
| 6 |
+
"mask_token": "[MASK]",
|
| 7 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 8 |
+
"pad_token": "[PAD]",
|
| 9 |
+
"sep_token": "[SEP]",
|
| 10 |
+
"strip_accents": null,
|
| 11 |
+
"tokenize_chinese_chars": true,
|
| 12 |
+
"tokenizer_class": "BertTokenizer",
|
| 13 |
+
"unk_token": "[UNK]"
|
| 14 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df34a2c1e0d2321022fb86c0857555bd4193a443b0017804a86058c208a56a78
|
| 3 |
+
size 5265
|