Text Classification
Transformers
Safetensors
Vietnamese
xlm-roberta
socialmedia
toxiccomment
classification_toxic_comment
transformer
text-embeddings-inference
Instructions to use UngLong/cafebert-classification-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use UngLong/cafebert-classification-ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="UngLong/cafebert-classification-ft")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("UngLong/cafebert-classification-ft") model = AutoModelForSequenceClassification.from_pretrained("UngLong/cafebert-classification-ft") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -26,4 +26,6 @@ This model is a fine-tuned version of CafeBERT on a toxic comment classification
|
|
| 26 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 27 |
|
| 28 |
tokenizer = AutoTokenizer.from_pretrained("UngLong/cafebert-classification-ft")
|
| 29 |
-
model = AutoModelForSequenceClassification.from_pretrained("UngLong/cafebert-classification-ft")
|
|
|
|
|
|
|
|
|
| 26 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 27 |
|
| 28 |
tokenizer = AutoTokenizer.from_pretrained("UngLong/cafebert-classification-ft")
|
| 29 |
+
model = AutoModelForSequenceClassification.from_pretrained("UngLong/cafebert-classification-ft")
|
| 30 |
+
|
| 31 |
+

|