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