Downloads · 30 days
154
0% of all-time downloads
lighteternal/fact-or-opinion-xlmr-el
fact-or-opinion-xlmr-el is a text classification model from lighteternal. 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.
This is an XLM-Roberta-base model with a binary classification head. Given a sentence, it can classify it either as a fact or an opinion based on its content.
Downloads · 30 days
154
0% of all-time downloads
All-time downloads
44.1K
Public
Repo size
2.2 GB
Likes
25
Public
Click a slice to open those files.
.bin1.1 GB · 99%
From the Hugging Face model README
This is an XLM-Roberta-base model with a binary classification head. Given a sentence, it can classify it either as a fact or an opinion based on its content.
You can use this model in any of the XLM-R supported languages for the same task, taking advantage of its 0-shot learning capabilities. However, the model was trained only using English and Greek sentences.
Legend of HuggingFace API labels:
The original dataset (available here: https://github.com/1024er/cbert_aug/tree/crayon/datasets/subj) contained aprox. 9000 annotated sentences (classified as subjective or objective). It was translated to Greek using Google Translate. The Greek version was then concatenated with the original English one to create the mixed EN-EL dataset.
The model was trained for 5 epochs, using batch size = 8. Detailed metrics and hyperparameters available on the "Metrics" tab.
| accuracy | precision | recall | f1 |
|---|---|---|---|
| 0.952 | 0.945 | 0.960 | 0.952 |
The research work was supported by the Hellenic Foundation for Research and Innovation (HFRI) under the HFRI PhD Fellowship grant (Fellowship Number:50, 2nd call)