Instructions to use lisagrace/hate_speech_bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lisagrace/hate_speech_bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="lisagrace/hate_speech_bert")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("lisagrace/hate_speech_bert") model = AutoModelForSequenceClassification.from_pretrained("lisagrace/hate_speech_bert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
metadata
language:
- vi
metrics:
- accuracy
library_name: transformers
pipeline_tag: text-classification
tags:
- hatespeech
- nlp
- text_classification
A model finetuned on Vietnamese dataset with an accuracy of 0.95