Instructions to use nihaldsouza1/covid-hatespeech-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nihaldsouza1/covid-hatespeech-detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="nihaldsouza1/covid-hatespeech-detection")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("nihaldsouza1/covid-hatespeech-detection") model = AutoModelForSequenceClassification.from_pretrained("nihaldsouza1/covid-hatespeech-detection") - Notebooks
- Google Colab
- Kaggle
Can't load
#1
by YPJ - opened
Hello Nihal,
while working on hate speech detection, I cannot load the model. An error message shows as below:
Can't load tokenizer using from_pretrained. Please update its configuration: Can't load tokenizer for 'nihaldsouza1/covid-hatespeech-detection'.
What went wrong in here?
Hi Yiyi,
I have fixed the issue. I had forgotten to upload the tokeniser configuration files.
Thanks for bringing this up!
nihaldsouza1 changed discussion status to closed