Text Classification
Transformers
Safetensors
multilingual
deberta-v2
subjectivity-detection
news-articles
deberta-v3
Generated from Trainer
Instructions to use AIWizards/mdeberta-v3-base-subjectivity-multilingual-no-arabic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AIWizards/mdeberta-v3-base-subjectivity-multilingual-no-arabic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AIWizards/mdeberta-v3-base-subjectivity-multilingual-no-arabic")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("AIWizards/mdeberta-v3-base-subjectivity-multilingual-no-arabic") model = AutoModelForSequenceClassification.from_pretrained("AIWizards/mdeberta-v3-base-subjectivity-multilingual-no-arabic") - Notebooks
- Google Colab
- Kaggle
Improve model card: Add pipeline tag, update metadata, and expand content
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,23 +1,32 @@
|
|
| 1 |
---
|
| 2 |
-
library_name: transformers
|
| 3 |
-
license: mit
|
| 4 |
base_model: microsoft/mdeberta-v3-base
|
| 5 |
-
|
| 6 |
-
|
| 7 |
metrics:
|
| 8 |
- accuracy
|
| 9 |
- f1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
model-index:
|
| 11 |
- name: mdeberta-v3-base-subjectivity-multilingual-no-arabic
|
| 12 |
results: []
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
|
| 15 |
-
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 16 |
-
should probably proofread and complete it, then remove this comment. -->
|
| 17 |
-
|
| 18 |
# mdeberta-v3-base-subjectivity-multilingual-no-arabic
|
| 19 |
|
| 20 |
-
This model is a fine-tuned version of [microsoft/mdeberta-v3-base](https://huggingface.co/microsoft/mdeberta-v3-base)
|
|
|
|
|
|
|
|
|
|
| 21 |
It achieves the following results on the evaluation set:
|
| 22 |
- Loss: 0.7196
|
| 23 |
- Macro F1: 0.8071
|
|
@@ -30,15 +39,20 @@ It achieves the following results on the evaluation set:
|
|
| 30 |
|
| 31 |
## Model description
|
| 32 |
|
| 33 |
-
|
| 34 |
|
| 35 |
## Intended uses & limitations
|
| 36 |
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
## Training and evaluation data
|
| 40 |
|
| 41 |
-
|
| 42 |
|
| 43 |
## Training procedure
|
| 44 |
|
|
@@ -64,10 +78,55 @@ The following hyperparameters were used during training:
|
|
| 64 |
| 0.2749 | 5.0 | 1245 | 0.7195 | 0.7996 | 0.8038 | 0.7963 | 0.7461 | 0.7689 | 0.7247 | 0.8139 |
|
| 65 |
| 0.2749 | 6.0 | 1494 | 0.7196 | 0.8071 | 0.8037 | 0.8123 | 0.7658 | 0.7367 | 0.7973 | 0.8159 |
|
| 66 |
|
| 67 |
-
|
| 68 |
### Framework versions
|
| 69 |
|
| 70 |
- Transformers 4.47.0
|
| 71 |
- Pytorch 2.5.1+cu121
|
| 72 |
- Datasets 3.3.1
|
| 73 |
-
- Tokenizers 0.21.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
base_model: microsoft/mdeberta-v3-base
|
| 3 |
+
library_name: transformers
|
| 4 |
+
license: cc-by-4.0
|
| 5 |
metrics:
|
| 6 |
- accuracy
|
| 7 |
- f1
|
| 8 |
+
pipeline_tag: text-classification
|
| 9 |
+
language: multilingual
|
| 10 |
+
tags:
|
| 11 |
+
- text-classification
|
| 12 |
+
- subjectivity-detection
|
| 13 |
+
- news-articles
|
| 14 |
+
- multilingual
|
| 15 |
+
- deberta-v3
|
| 16 |
+
- generated_from_trainer
|
| 17 |
model-index:
|
| 18 |
- name: mdeberta-v3-base-subjectivity-multilingual-no-arabic
|
| 19 |
results: []
|
| 20 |
+
datasets:
|
| 21 |
+
- MatteoFasulo/clef2025_checkthat_task1_subjectivity
|
| 22 |
---
|
| 23 |
|
|
|
|
|
|
|
|
|
|
| 24 |
# mdeberta-v3-base-subjectivity-multilingual-no-arabic
|
| 25 |
|
| 26 |
+
This model is a fine-tuned version of [microsoft/mdeberta-v3-base](https://huggingface.co/microsoft/mdeberta-v3-base) for subjectivity detection in news articles. It was presented in the paper [AI Wizards at CheckThat! 2025: Enhancing Transformer-Based Embeddings with Sentiment for Subjectivity Detection in News Articles](https://arxiv.org/abs/2507.11764).
|
| 27 |
+
|
| 28 |
+
**GitHub Repository**: For the official code and more details, please refer to the [GitHub repository](https://github.com/MatteoFasulo/clef2025-checkthat).
|
| 29 |
+
|
| 30 |
It achieves the following results on the evaluation set:
|
| 31 |
- Loss: 0.7196
|
| 32 |
- Macro F1: 0.8071
|
|
|
|
| 39 |
|
| 40 |
## Model description
|
| 41 |
|
| 42 |
+
This model is a fine-tuned version of `microsoft/mdeberta-v3-base` for **Subjectivity Detection in News Articles**. It classifies sentences as subjective or objective across monolingual, multilingual, and zero-shot settings. The core innovation lies in enhancing transformer-based classifiers by integrating sentiment scores, derived from an auxiliary model, with sentence representations. This sentiment-augmented architecture, applied here with mDeBERTaV3-base, aims to improve upon standard fine-tuning, particularly boosting subjective F1 score. Decision threshold calibration was also employed to address class imbalance.
|
| 43 |
|
| 44 |
## Intended uses & limitations
|
| 45 |
|
| 46 |
+
This model is intended to identify whether a sentence is **subjective** (e.g., opinion-laden) or **objective**, making it a valuable tool for combating misinformation, improving fact-checking pipelines, and supporting journalists in content analysis.
|
| 47 |
+
|
| 48 |
+
**Limitations:**
|
| 49 |
+
* This specific model (`multilingual-no-arabic`) was fine-tuned on the multilingual dataset *excluding Arabic* data.
|
| 50 |
+
* While designed for multilingual and zero-shot transfer, performance can vary significantly across languages and specific domains.
|
| 51 |
+
* The original submission process had a mistake where a custom train/dev mix was inadvertently used, leading to skewed class distribution and under-calibrated decision thresholds for the official multilingual Macro F1 score (0.24). A re-evaluation with the correct data split yielded a Macro F1 = 0.68, which would have placed the model 9th overall in the challenge.
|
| 52 |
|
| 53 |
## Training and evaluation data
|
| 54 |
|
| 55 |
+
Training and development datasets were provided for Arabic, German, English, Italian, and Bulgarian as part of the CLEF 2025 CheckThat! Lab Task 1: Subjectivity Detection in News Articles. This specific model was trained on the multilingual dataset, *excluding Arabic* data. Final evaluation included additional unseen languages (e.g., Greek, Romanian, Polish, Ukrainian) to assess generalization capabilities.
|
| 56 |
|
| 57 |
## Training procedure
|
| 58 |
|
|
|
|
| 78 |
| 0.2749 | 5.0 | 1245 | 0.7195 | 0.7996 | 0.8038 | 0.7963 | 0.7461 | 0.7689 | 0.7247 | 0.8139 |
|
| 79 |
| 0.2749 | 6.0 | 1494 | 0.7196 | 0.8071 | 0.8037 | 0.8123 | 0.7658 | 0.7367 | 0.7973 | 0.8159 |
|
| 80 |
|
|
|
|
| 81 |
### Framework versions
|
| 82 |
|
| 83 |
- Transformers 4.47.0
|
| 84 |
- Pytorch 2.5.1+cu121
|
| 85 |
- Datasets 3.3.1
|
| 86 |
+
- Tokenizers 0.21.0
|
| 87 |
+
|
| 88 |
+
## How to use
|
| 89 |
+
|
| 90 |
+
You can use the model with the `pipeline` API from the `transformers` library for text classification:
|
| 91 |
+
|
| 92 |
+
```python
|
| 93 |
+
from transformers import pipeline
|
| 94 |
+
|
| 95 |
+
# Load the text classification pipeline
|
| 96 |
+
classifier = pipeline(
|
| 97 |
+
"text-classification",
|
| 98 |
+
model="MatteoFasulo/mdeberta-v3-base-subjectivity-multilingual-no-arabic",
|
| 99 |
+
tokenizer="microsoft/mdeberta-v3-base",
|
| 100 |
+
)
|
| 101 |
+
|
| 102 |
+
# Example usage:
|
| 103 |
+
# A subjective sentence
|
| 104 |
+
result_subj = classifier("This is a truly amazing and groundbreaking discovery!")
|
| 105 |
+
print(f"Sentence: 'This is a truly amazing and groundbreaking discovery!' -> {result_subj}")
|
| 106 |
+
|
| 107 |
+
# An objective sentence
|
| 108 |
+
result_obj = classifier("The new policy will be implemented next quarter.")
|
| 109 |
+
print(f"Sentence: 'The new policy will be implemented next quarter.' -> {result_obj}")
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
## Citation
|
| 113 |
+
|
| 114 |
+
If you find our work helpful or inspiring, please feel free to cite it:
|
| 115 |
+
|
| 116 |
+
```bibtex
|
| 117 |
+
@misc{fasulo2025aiwizardscheckthat2025,
|
| 118 |
+
title={AI Wizards at CheckThat! 2025: Enhancing Transformer-Based Embeddings with Sentiment for Subjectivity Detection in News Articles},
|
| 119 |
+
author={Matteo Fasulo and Luca Babboni and Luca Tedeschini},
|
| 120 |
+
year={2025},
|
| 121 |
+
eprint={2507.11764},
|
| 122 |
+
archivePrefix={arXiv},
|
| 123 |
+
primaryClass={cs.CL},
|
| 124 |
+
url={https://arxiv.org/abs/2507.11764},
|
| 125 |
+
}
|
| 126 |
+
```
|
| 127 |
+
|
| 128 |
+
You can find the official paper on Hugging Face Papers: [AI Wizards at CheckThat! 2025: Enhancing Transformer-Based Embeddings with Sentiment for Subjectivity Detection in News Articles](https://huggingface.co/papers/2507.11764).
|
| 129 |
+
|
| 130 |
+
## License
|
| 131 |
+
|
| 132 |
+
This work is licensed under the [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/deed.en) (CC BY 4.0).
|