Downloads · 30 days
40
1% of all-time downloads
SophieTr/xlm-roberta-base-claim-detection-clef21-24
xlm-roberta-base-claim-detection-clef21-24 is a text classification model from SophieTr. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
The model detect claim-worthiness of a given text. This model is a part of an automatic fact-checking pipeline.
Downloads · 30 days
40
1% of all-time downloads
All-time downloads
5.3K
Public
Parameters
278M
1.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors1.1 GB · 100%
From the Hugging Face model README
The model detect claim-worthiness of a given text. This model is a part of an automatic fact-checking pipeline.
The model is trained on data for Task 1 from CLEF2021-CheckThat and CLEF2024-CheckThat
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
The model is fine-tuned on a multilingual dataset, combining english, spanish, arabic, bulgarian, turkish, and dutch. It is meant to be used as zero-shot model for multilingual text data.
tokenizer = XLMRobertaTokenizer.from_pretrained("FacebookAI/xlm-roberta-base")
model = XLMRobertaForSequenceClassification.from_pretrained("SophieTr/xlm-roberta-base-claim-detection-clef21-24")
inputs = tokenizer(
sentence_array,
return_tensors="pt",
padding=True,
truncation=True
)
with torch.no_grad():
logits = model(**inputs).logits
predictions = [logits[i].argmax().item() for i,t in enumerate(logits)]