Text Classification
Transformers
PyTorch
Safetensors
Spanish
xlm-roberta
Generated from Trainer
optuna
shap
toxic
toxicity
news
tweets
text-embeddings-inference
Instructions to use jjmcarrascosa/xlm-roberta-base-toxicity with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jjmcarrascosa/xlm-roberta-base-toxicity with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="jjmcarrascosa/xlm-roberta-base-toxicity")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("jjmcarrascosa/xlm-roberta-base-toxicity") model = AutoModelForSequenceClassification.from_pretrained("jjmcarrascosa/xlm-roberta-base-toxicity", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Ctrl+K