Instructions to use Amala3/BERTweet_Irony with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Amala3/BERTweet_Irony with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Amala3/BERTweet_Irony")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Amala3/BERTweet_Irony") model = AutoModelForSequenceClassification.from_pretrained("Amala3/BERTweet_Irony") - Notebooks
- Google Colab
- Kaggle
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Amala3/BERTweet_Irony")
model = AutoModelForSequenceClassification.from_pretrained("Amala3/BERTweet_Irony")YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
DISCLAIMER: WORK IN PROGRESS >> WILL BE UPDATED WITH MORE INFORMATION
This model based on BERTweet-base has been finetuned on the Semeval 2018 Task 3 dataset for Irony Detection in English. However, we do not use the original labels, as we have provided more finegrained labels and annotated the tweets without irony-related hashtags. These specific models are based on a new paper accepted at the Joint LREC-COLING main conference. This model was trained on 4,592 samples (not the standard benchmark dataset) to be evaluated on 200 tweets labelled by three different annotators.
A model with the same parameters was also evaluated on the complete dataset through 10-fold CV. TODO: add the scores once the paper is published.
REFERENCE TO THE PAPER WILL BE INCLUDED ONCE IT IS PUBLISHED.
- Downloads last month
- 3
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Amala3/BERTweet_Irony")