Text Classification
Transformers
Safetensors
Portuguese
bert
portuguese
pt-br
content-moderation
spam-detection
toxicity-detection
adult-content
lightweight
text-embeddings-inference
Instructions to use Comunidade-Synapse-BR/Synapse-Guard-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Comunidade-Synapse-BR/Synapse-Guard-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Comunidade-Synapse-BR/Synapse-Guard-v1")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Comunidade-Synapse-BR/Synapse-Guard-v1") model = AutoModelForSequenceClassification.from_pretrained("Comunidade-Synapse-BR/Synapse-Guard-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 449 Bytes
54c5f34 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | {
"backend": "tokenizers",
"cls_token": "[CLS]",
"do_lower_case": true,
"extra_special_tokens": [
"[PAD]",
"[UNK]",
"[CLS]",
"[SEP]",
"[MASK]"
],
"is_local": false,
"local_files_only": false,
"mask_token": "[MASK]",
"model_max_length": 512,
"pad_token": "[PAD]",
"sep_token": "[SEP]",
"strip_accents": null,
"tokenize_chinese_chars": true,
"tokenizer_class": "BertTokenizer",
"unk_token": "[UNK]"
}
|