🦊 Foxy-Core intent v2.0.0
Browse files- README.md +41 -0
- config.json +124 -0
- id2intent.json +44 -0
- intent2id.json +44 -0
- model.safetensors +3 -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 |
+
- intent
|
| 11 |
+
pipeline_tag: text-classification
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# 🦊 Foxy-Core — INTENT 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-intent"
|
| 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,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": "agenda.cancelar",
|
| 17 |
+
"1": "agenda.consultar",
|
| 18 |
+
"10": "info.faq",
|
| 19 |
+
"11": "info.horario",
|
| 20 |
+
"12": "info.localizacao",
|
| 21 |
+
"13": "info.preco",
|
| 22 |
+
"14": "info.servicos",
|
| 23 |
+
"15": "info.sobre_empresa",
|
| 24 |
+
"16": "pagamento.comprovante",
|
| 25 |
+
"17": "pagamento.confirmar",
|
| 26 |
+
"18": "pagamento.erro",
|
| 27 |
+
"19": "pagamento.metodos",
|
| 28 |
+
"2": "agenda.criar",
|
| 29 |
+
"20": "pagamento.parcelamento",
|
| 30 |
+
"21": "pedido.cancelar",
|
| 31 |
+
"22": "pedido.criar",
|
| 32 |
+
"23": "pedido.historico",
|
| 33 |
+
"24": "pedido.modificar",
|
| 34 |
+
"25": "pedido.repetir",
|
| 35 |
+
"26": "pedido.status",
|
| 36 |
+
"27": "saudacao.como_vai",
|
| 37 |
+
"28": "saudacao.obrigado",
|
| 38 |
+
"29": "saudacao.ola",
|
| 39 |
+
"3": "agenda.remarcar",
|
| 40 |
+
"30": "saudacao.tchau",
|
| 41 |
+
"31": "sistema.confirmar",
|
| 42 |
+
"32": "sistema.fallback",
|
| 43 |
+
"33": "sistema.fora_escopo",
|
| 44 |
+
"34": "sistema.negar",
|
| 45 |
+
"35": "sistema.voltar",
|
| 46 |
+
"36": "suporte.feedback",
|
| 47 |
+
"37": "suporte.humano",
|
| 48 |
+
"38": "suporte.problema_tecnico",
|
| 49 |
+
"39": "suporte.reclamacao",
|
| 50 |
+
"4": "conta.atualizar_dados",
|
| 51 |
+
"40": "suporte.reembolso",
|
| 52 |
+
"41": "suporte.troca",
|
| 53 |
+
"5": "conta.criar",
|
| 54 |
+
"6": "conta.deletar",
|
| 55 |
+
"7": "conta.login",
|
| 56 |
+
"8": "conta.recuperar_senha",
|
| 57 |
+
"9": "info.contato"
|
| 58 |
+
},
|
| 59 |
+
"initializer_range": 0.02,
|
| 60 |
+
"intermediate_size": 3072,
|
| 61 |
+
"is_decoder": false,
|
| 62 |
+
"label2id": {
|
| 63 |
+
"agenda.cancelar": 0,
|
| 64 |
+
"agenda.consultar": 1,
|
| 65 |
+
"agenda.criar": 2,
|
| 66 |
+
"agenda.remarcar": 3,
|
| 67 |
+
"conta.atualizar_dados": 4,
|
| 68 |
+
"conta.criar": 5,
|
| 69 |
+
"conta.deletar": 6,
|
| 70 |
+
"conta.login": 7,
|
| 71 |
+
"conta.recuperar_senha": 8,
|
| 72 |
+
"info.contato": 9,
|
| 73 |
+
"info.faq": 10,
|
| 74 |
+
"info.horario": 11,
|
| 75 |
+
"info.localizacao": 12,
|
| 76 |
+
"info.preco": 13,
|
| 77 |
+
"info.servicos": 14,
|
| 78 |
+
"info.sobre_empresa": 15,
|
| 79 |
+
"pagamento.comprovante": 16,
|
| 80 |
+
"pagamento.confirmar": 17,
|
| 81 |
+
"pagamento.erro": 18,
|
| 82 |
+
"pagamento.metodos": 19,
|
| 83 |
+
"pagamento.parcelamento": 20,
|
| 84 |
+
"pedido.cancelar": 21,
|
| 85 |
+
"pedido.criar": 22,
|
| 86 |
+
"pedido.historico": 23,
|
| 87 |
+
"pedido.modificar": 24,
|
| 88 |
+
"pedido.repetir": 25,
|
| 89 |
+
"pedido.status": 26,
|
| 90 |
+
"saudacao.como_vai": 27,
|
| 91 |
+
"saudacao.obrigado": 28,
|
| 92 |
+
"saudacao.ola": 29,
|
| 93 |
+
"saudacao.tchau": 30,
|
| 94 |
+
"sistema.confirmar": 31,
|
| 95 |
+
"sistema.fallback": 32,
|
| 96 |
+
"sistema.fora_escopo": 33,
|
| 97 |
+
"sistema.negar": 34,
|
| 98 |
+
"sistema.voltar": 35,
|
| 99 |
+
"suporte.feedback": 36,
|
| 100 |
+
"suporte.humano": 37,
|
| 101 |
+
"suporte.problema_tecnico": 38,
|
| 102 |
+
"suporte.reclamacao": 39,
|
| 103 |
+
"suporte.reembolso": 40,
|
| 104 |
+
"suporte.troca": 41
|
| 105 |
+
},
|
| 106 |
+
"layer_norm_eps": 1e-12,
|
| 107 |
+
"max_position_embeddings": 512,
|
| 108 |
+
"model_type": "bert",
|
| 109 |
+
"num_attention_heads": 12,
|
| 110 |
+
"num_hidden_layers": 12,
|
| 111 |
+
"output_past": true,
|
| 112 |
+
"pad_token_id": 0,
|
| 113 |
+
"pooler_fc_size": 768,
|
| 114 |
+
"pooler_num_attention_heads": 12,
|
| 115 |
+
"pooler_num_fc_layers": 3,
|
| 116 |
+
"pooler_size_per_head": 128,
|
| 117 |
+
"pooler_type": "first_token_transform",
|
| 118 |
+
"problem_type": "single_label_classification",
|
| 119 |
+
"tie_word_embeddings": true,
|
| 120 |
+
"transformers_version": "5.0.0",
|
| 121 |
+
"type_vocab_size": 2,
|
| 122 |
+
"use_cache": false,
|
| 123 |
+
"vocab_size": 29794
|
| 124 |
+
}
|
id2intent.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"0": "agenda.cancelar",
|
| 3 |
+
"1": "agenda.consultar",
|
| 4 |
+
"2": "agenda.criar",
|
| 5 |
+
"3": "agenda.remarcar",
|
| 6 |
+
"4": "conta.atualizar_dados",
|
| 7 |
+
"5": "conta.criar",
|
| 8 |
+
"6": "conta.deletar",
|
| 9 |
+
"7": "conta.login",
|
| 10 |
+
"8": "conta.recuperar_senha",
|
| 11 |
+
"9": "info.contato",
|
| 12 |
+
"10": "info.faq",
|
| 13 |
+
"11": "info.horario",
|
| 14 |
+
"12": "info.localizacao",
|
| 15 |
+
"13": "info.preco",
|
| 16 |
+
"14": "info.servicos",
|
| 17 |
+
"15": "info.sobre_empresa",
|
| 18 |
+
"16": "pagamento.comprovante",
|
| 19 |
+
"17": "pagamento.confirmar",
|
| 20 |
+
"18": "pagamento.erro",
|
| 21 |
+
"19": "pagamento.metodos",
|
| 22 |
+
"20": "pagamento.parcelamento",
|
| 23 |
+
"21": "pedido.cancelar",
|
| 24 |
+
"22": "pedido.criar",
|
| 25 |
+
"23": "pedido.historico",
|
| 26 |
+
"24": "pedido.modificar",
|
| 27 |
+
"25": "pedido.repetir",
|
| 28 |
+
"26": "pedido.status",
|
| 29 |
+
"27": "saudacao.como_vai",
|
| 30 |
+
"28": "saudacao.obrigado",
|
| 31 |
+
"29": "saudacao.ola",
|
| 32 |
+
"30": "saudacao.tchau",
|
| 33 |
+
"31": "sistema.confirmar",
|
| 34 |
+
"32": "sistema.fallback",
|
| 35 |
+
"33": "sistema.fora_escopo",
|
| 36 |
+
"34": "sistema.negar",
|
| 37 |
+
"35": "sistema.voltar",
|
| 38 |
+
"36": "suporte.feedback",
|
| 39 |
+
"37": "suporte.humano",
|
| 40 |
+
"38": "suporte.problema_tecnico",
|
| 41 |
+
"39": "suporte.reclamacao",
|
| 42 |
+
"40": "suporte.reembolso",
|
| 43 |
+
"41": "suporte.troca"
|
| 44 |
+
}
|
intent2id.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"agenda.cancelar": 0,
|
| 3 |
+
"agenda.consultar": 1,
|
| 4 |
+
"agenda.criar": 2,
|
| 5 |
+
"agenda.remarcar": 3,
|
| 6 |
+
"conta.atualizar_dados": 4,
|
| 7 |
+
"conta.criar": 5,
|
| 8 |
+
"conta.deletar": 6,
|
| 9 |
+
"conta.login": 7,
|
| 10 |
+
"conta.recuperar_senha": 8,
|
| 11 |
+
"info.contato": 9,
|
| 12 |
+
"info.faq": 10,
|
| 13 |
+
"info.horario": 11,
|
| 14 |
+
"info.localizacao": 12,
|
| 15 |
+
"info.preco": 13,
|
| 16 |
+
"info.servicos": 14,
|
| 17 |
+
"info.sobre_empresa": 15,
|
| 18 |
+
"pagamento.comprovante": 16,
|
| 19 |
+
"pagamento.confirmar": 17,
|
| 20 |
+
"pagamento.erro": 18,
|
| 21 |
+
"pagamento.metodos": 19,
|
| 22 |
+
"pagamento.parcelamento": 20,
|
| 23 |
+
"pedido.cancelar": 21,
|
| 24 |
+
"pedido.criar": 22,
|
| 25 |
+
"pedido.historico": 23,
|
| 26 |
+
"pedido.modificar": 24,
|
| 27 |
+
"pedido.repetir": 25,
|
| 28 |
+
"pedido.status": 26,
|
| 29 |
+
"saudacao.como_vai": 27,
|
| 30 |
+
"saudacao.obrigado": 28,
|
| 31 |
+
"saudacao.ola": 29,
|
| 32 |
+
"saudacao.tchau": 30,
|
| 33 |
+
"sistema.confirmar": 31,
|
| 34 |
+
"sistema.fallback": 32,
|
| 35 |
+
"sistema.fora_escopo": 33,
|
| 36 |
+
"sistema.negar": 34,
|
| 37 |
+
"sistema.voltar": 35,
|
| 38 |
+
"suporte.feedback": 36,
|
| 39 |
+
"suporte.humano": 37,
|
| 40 |
+
"suporte.problema_tecnico": 38,
|
| 41 |
+
"suporte.reclamacao": 39,
|
| 42 |
+
"suporte.reembolso": 40,
|
| 43 |
+
"suporte.troca": 41
|
| 44 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99acafa1f66589ca64130048f9c9c04354404a4c8abbced70e116851648eb859
|
| 3 |
+
size 435845240
|
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:80906464ee1404c06bd351771df90ea45997c7eee65ed9fda495af326f42d90d
|
| 3 |
+
size 5265
|