Text Classification
Transformers
Safetensors
Thai
xlm-roberta
thai
toxicity-detection
hate-speech
nlp
text-embeddings-inference
Instructions to use mashironotdev/thai-toxic-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mashironotdev/thai-toxic-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mashironotdev/thai-toxic-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mashironotdev/thai-toxic-classifier") model = AutoModelForSequenceClassification.from_pretrained("mashironotdev/thai-toxic-classifier") - Notebooks
- Google Colab
- Kaggle
File size: 313 Bytes
59497ec | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | {
"add_prefix_space": true,
"backend": "tokenizers",
"bos_token": "<s>",
"cls_token": "<s>",
"eos_token": "</s>",
"is_local": true,
"mask_token": "<mask>",
"model_max_length": 512,
"pad_token": "<pad>",
"sep_token": "</s>",
"tokenizer_class": "XLMRobertaTokenizer",
"unk_token": "<unk>"
}
|