mginoben/tagalog-profanity-dataset
Viewer • Updated • 13.9k • 65 • 1
How to use ggpt1006/tl-hatespeech-detection with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="ggpt1006/tl-hatespeech-detection") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("ggpt1006/tl-hatespeech-detection")
model = AutoModelForSequenceClassification.from_pretrained("ggpt1006/tl-hatespeech-detection", device_map="auto")