Instructions to use minh21/XLNet-Toxic-Comment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use minh21/XLNet-Toxic-Comment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="minh21/XLNet-Toxic-Comment")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("minh21/XLNet-Toxic-Comment") model = AutoModelForSequenceClassification.from_pretrained("minh21/XLNet-Toxic-Comment") - Notebooks
- Google Colab
- Kaggle
File size: 129 Bytes
a443e21 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:81c39050757256fff39a384fb840f639b50a8db8005588855cd73b4f7dde8550
size 4027
|