Instructions to use AIWizards/mdeberta-v3-base-subjectivity-sentiment-bulgarian with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AIWizards/mdeberta-v3-base-subjectivity-sentiment-bulgarian with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AIWizards/mdeberta-v3-base-subjectivity-sentiment-bulgarian")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("AIWizards/mdeberta-v3-base-subjectivity-sentiment-bulgarian") model = AutoModel.from_pretrained("AIWizards/mdeberta-v3-base-subjectivity-sentiment-bulgarian") - Notebooks
- Google Colab
- Kaggle
Improve model card: Add pipeline tag, update license, expand content and add links
Browse filesThis PR enhances the model card for `mdeberta-v3-base-subjectivity-sentiment-bulgarian` by:
* Adding the `pipeline_tag: text-classification` to correctly categorize the model's functionality and improve discoverability on the Hugging Face Hub.
* Updating the `license` from `mit` to `cc-by-4.0`, aligning with the official project license.
* Expanding the "Model description", "Intended uses & limitations", and "Training and evaluation data" sections with comprehensive details from the paper abstract and the GitHub repository.
* Adding a clear Python code snippet for using the model with the `transformers` pipeline.
* Including links to the GitHub repository and the Hugging Face Hub collection for the project, improving accessibility to related resources.
* Adding a BibTeX citation for proper attribution.
|
@@ -1,18 +1,20 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
-
|
| 4 |
-
- generated_from_trainer
|
| 5 |
metrics:
|
| 6 |
- accuracy
|
| 7 |
- f1
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
model-index:
|
| 9 |
- name: mdeberta-v3-base-subjectivity-sentiment-bulgarian
|
| 10 |
results: []
|
| 11 |
-
license: mit
|
| 12 |
-
language:
|
| 13 |
-
- bg
|
| 14 |
-
base_model:
|
| 15 |
-
- microsoft/mdeberta-v3-base
|
| 16 |
---
|
| 17 |
|
| 18 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -20,7 +22,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 20 |
|
| 21 |
# mdeberta-v3-base-subjectivity-sentiment-bulgarian
|
| 22 |
|
| 23 |
-
This model is a fine-tuned version of [microsoft/mdeberta-v3-base](https://huggingface.co/microsoft/mdeberta-v3-base) on the [CheckThat! Lab Task 1 Subjectivity Detection at CLEF 2025](arxiv.org/abs/2507.11764).
|
| 24 |
It achieves the following results on the evaluation set:
|
| 25 |
- Loss: 0.4555
|
| 26 |
- Macro F1: 0.8291
|
|
@@ -33,15 +35,52 @@ It achieves the following results on the evaluation set:
|
|
| 33 |
|
| 34 |
## Model description
|
| 35 |
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
## Intended uses & limitations
|
| 39 |
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
## Training and evaluation data
|
| 43 |
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
## Training procedure
|
| 47 |
|
|
@@ -73,4 +112,30 @@ The following hyperparameters were used during training:
|
|
| 73 |
- Transformers 4.49.0
|
| 74 |
- Pytorch 2.5.1+cu121
|
| 75 |
- Datasets 3.3.1
|
| 76 |
-
- Tokenizers 0.21.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model:
|
| 3 |
+
- microsoft/mdeberta-v3-base
|
| 4 |
+
language:
|
| 5 |
+
- bg
|
| 6 |
library_name: transformers
|
| 7 |
+
license: cc-by-4.0
|
|
|
|
| 8 |
metrics:
|
| 9 |
- accuracy
|
| 10 |
- f1
|
| 11 |
+
tags:
|
| 12 |
+
- generated_from_trainer
|
| 13 |
+
- text-classification
|
| 14 |
+
pipeline_tag: text-classification
|
| 15 |
model-index:
|
| 16 |
- name: mdeberta-v3-base-subjectivity-sentiment-bulgarian
|
| 17 |
results: []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
---
|
| 19 |
|
| 20 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 22 |
|
| 23 |
# mdeberta-v3-base-subjectivity-sentiment-bulgarian
|
| 24 |
|
| 25 |
+
This model is a fine-tuned version of [microsoft/mdeberta-v3-base](https://huggingface.co/microsoft/mdeberta-v3-base) on the [CheckThat! Lab Task 1 Subjectivity Detection at CLEF 2025](https://arxiv.org/abs/2507.11764).
|
| 26 |
It achieves the following results on the evaluation set:
|
| 27 |
- Loss: 0.4555
|
| 28 |
- Macro F1: 0.8291
|
|
|
|
| 35 |
|
| 36 |
## Model description
|
| 37 |
|
| 38 |
+
This model is a fine-tuned `mDeBERTaV3-base` classifier designed for **subjectivity detection in news articles**, specifically for the Bulgarian language. It classifies sentences as either **subjective** (opinion-laden) or **objective**.
|
| 39 |
+
|
| 40 |
+
The core innovation of this approach, as detailed in the associated paper, is the enhancement of transformer-based embeddings by integrating sentiment scores derived from an auxiliary model. This sentiment-augmented architecture aims to improve upon standard fine-tuning, demonstrating significant performance boosts, particularly in subjective F1 score. The training also incorporates robust decision threshold calibration to effectively address class imbalance.
|
| 41 |
+
|
| 42 |
+
This model is part of the AI Wizards' participation in the CLEF 2025 CheckThat! Lab Task 1: Subjectivity Detection in News Articles. The broader research explored its application across monolingual, multilingual, and zero-shot settings.
|
| 43 |
|
| 44 |
## Intended uses & limitations
|
| 45 |
|
| 46 |
+
This model is intended for classifying sentences as subjective or objective within news articles, which is a key component in **combating misinformation**, **improving fact-checking pipelines**, and **supporting journalists**. This specific checkpoint is optimized for the **Bulgarian language**.
|
| 47 |
+
|
| 48 |
+
**Limitations:**
|
| 49 |
+
* While the sentiment-augmented approach showed consistent performance gains, the paper notes that BERT-like models still surpassed LLM baselines in various scenarios, indicating areas for further research.
|
| 50 |
+
* The model's effectiveness may vary for domains or linguistic styles significantly different from the news articles it was trained on.
|
| 51 |
+
* Generalization to other languages beyond those explicitly evaluated (Arabic, German, English, Italian, Bulgarian, Greek, Romanian, Polish, Ukrainian) is not guaranteed without further fine-tuning.
|
| 52 |
|
| 53 |
## Training and evaluation data
|
| 54 |
|
| 55 |
+
This model was fine-tuned on the data provided for the **CLEF 2025 CheckThat! Lab Task 1: Subjectivity Detection in News Articles**. Training and development datasets were provided for various languages, including Bulgarian. The final evaluation included additional unseen languages to assess generalization capabilities.
|
| 56 |
+
|
| 57 |
+
To address class imbalance, a common issue across languages, decision threshold calibration was employed during training and optimized on the development set. The base model, `microsoft/mdeberta-v3-base`, was pretrained on a diverse multilingual corpus.
|
| 58 |
+
|
| 59 |
+
## How to use
|
| 60 |
+
|
| 61 |
+
You can use this model directly with the Hugging Face `transformers` library:
|
| 62 |
+
|
| 63 |
+
```python
|
| 64 |
+
from transformers import pipeline
|
| 65 |
+
|
| 66 |
+
classifier = pipeline(
|
| 67 |
+
"text-classification",
|
| 68 |
+
model="MatteoFasulo/mdeberta-v3-base-subjectivity-sentiment-bulgarian",
|
| 69 |
+
tokenizer="MatteoFasulo/mdeberta-v3-base-subjectivity-sentiment-bulgarian"
|
| 70 |
+
)
|
| 71 |
+
|
| 72 |
+
# Example for an objective sentence in Bulgarian
|
| 73 |
+
text_objective = "Водата замръзва при 0 градуса по Целзий." # Water freezes at 0 degrees Celsius.
|
| 74 |
+
|
| 75 |
+
# Example for a subjective sentence in Bulgarian
|
| 76 |
+
text_subjective = "Това е най-красивият ден в живота ми!" # This is the most beautiful day of my life!
|
| 77 |
+
|
| 78 |
+
result_objective = classifier(text_objective)
|
| 79 |
+
result_subjective = classifier(text_subjective)
|
| 80 |
+
|
| 81 |
+
print(f"'{text_objective}' -> {result_objective}")
|
| 82 |
+
print(f"'{text_subjective}' -> {result_subjective}")
|
| 83 |
+
```
|
| 84 |
|
| 85 |
## Training procedure
|
| 86 |
|
|
|
|
| 112 |
- Transformers 4.49.0
|
| 113 |
- Pytorch 2.5.1+cu121
|
| 114 |
- Datasets 3.3.1
|
| 115 |
+
- Tokenizers 0.21.0
|
| 116 |
+
|
| 117 |
+
## Code
|
| 118 |
+
|
| 119 |
+
The official code and materials for this project are available on GitHub:
|
| 120 |
+
[https://github.com/MatteoFasulo/clef2025-checkthat](https://github.com/MatteoFasulo/clef2025-checkthat)
|
| 121 |
+
|
| 122 |
+
## Project Page
|
| 123 |
+
|
| 124 |
+
Explore the collection of models and interactive results on the Hugging Face Hub:
|
| 125 |
+
[AI Wizards @ CLEF 2025 - CheckThat! Lab - Task 1 Subjectivity](https://huggingface.co/collections/MatteoFasulo/clef-2025-checkthat-lab-task-1-subjectivity-6878f0199d302acdfe2ceddb)
|
| 126 |
+
|
| 127 |
+
## Citation
|
| 128 |
+
|
| 129 |
+
If you find this work useful, please cite the associated paper:
|
| 130 |
+
|
| 131 |
+
```bibtex
|
| 132 |
+
@misc{fasulo2025aiwizardscheckthat2025,
|
| 133 |
+
title={AI Wizards at CheckThat! 2025: Enhancing Transformer-Based Embeddings with Sentiment for Subjectivity Detection in News Articles},
|
| 134 |
+
author={Matteo Fasulo and Alessandro Forghieri and Gianluca Caiazza and Silvia Bruni and Lorenzo Marcon and Andrea Favalli},
|
| 135 |
+
year={2025},
|
| 136 |
+
eprint={2507.11764},
|
| 137 |
+
archivePrefix={arXiv},
|
| 138 |
+
primaryClass={cs.CL},
|
| 139 |
+
url={https://arxiv.org/abs/2507.11764},
|
| 140 |
+
}
|
| 141 |
+
```
|