Instructions to use minh21/XLNet-Reddit-Toxic-Comment-Classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use minh21/XLNet-Reddit-Toxic-Comment-Classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="minh21/XLNet-Reddit-Toxic-Comment-Classification")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("minh21/XLNet-Reddit-Toxic-Comment-Classification") model = AutoModelForSequenceClassification.from_pretrained("minh21/XLNet-Reddit-Toxic-Comment-Classification") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -15,7 +15,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 15 |
|
| 16 |
# XLNet-Reddit-Toxic-Comment-Classification
|
| 17 |
|
| 18 |
-
This model is a fine-tuned version of [xlnet-base-cased](https://huggingface.co/xlnet-base-cased) on the
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
- Loss: 0.2615
|
| 21 |
- Rmse: 0.2748
|
|
|
|
| 15 |
|
| 16 |
# XLNet-Reddit-Toxic-Comment-Classification
|
| 17 |
|
| 18 |
+
This model is a fine-tuned version of [xlnet-base-cased](https://huggingface.co/xlnet-base-cased) on the Toxic Comment Classification Challenge dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
- Loss: 0.2615
|
| 21 |
- Rmse: 0.2748
|