mwong/climate-evidence-related
Viewer • Updated • 15.4k • 317 • 3
How to use mwong/roberta-base-climate-evidence-related with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="mwong/roberta-base-climate-evidence-related") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("mwong/roberta-base-climate-evidence-related")
model = AutoModelForSequenceClassification.from_pretrained("mwong/roberta-base-climate-evidence-related")ClimateRoberta is a classifier model that predicts if climate related evidence is related to query claim. The model achieved F1 score of 80.13% with test dataset "mwong/climate-evidence-related". Using pretrained roberta-base model, the classifier head is trained on Fever dataset and adapted to climate domain using ClimateFever dataset.