Downloads · 30 days
0
0% of all-time downloads
identrics/wasper_propaganda_detection_en
wasper_propaganda_detection_en is a machine learning model from identrics. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
- Developed by: Identrics - Language: English - License: apache-2.0 - Finetuned from model: google-bert/bert-base-cased - Context window : 512 tokens
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
3
Public
Parameters
108M
1.3 GB on disk
Likes
4
Public
Click a slice to open those files.
.pt867 MB · 50%
From the Hugging Face model README
Identricsgoogle-bert/bert-base-casedThis model consists of a fine-tuned version of google-bert/bert-base-cased for a propaganda detection task. It is effectively a binary classifier, determining whether propaganda is present in the output string.
This model was created by Identrics, in the scope of the WASPer project. The detailed taxonomy of the full pipeline could be found here.
Designed as a binary classifier to determine whether a traditional or social media comment contains propaganda.
First install direct dependencies:
pip install transformers torch accelerate
Then the model can be downloaded and used for inference:
from transformers import pipeline
labels_map = {"0": "No Propaganda", "1": "Propaganda"}
pipe = pipeline(
"text-classification",
model="identrics/wasper_propaganda_detection_en",
tokenizer="identrics/wasper_propaganda_detection_en",
)
text = "Our country is the most powerful country in the world!"
prediction = pipe(text)
print(labels_map[prediction[0]["label"]])
The training dataset for the model consists of a balanced collection of English examples, including both propaganda and non-propaganda content. These examples were sourced from a variety of traditional media and social media platforms and manually annotated by domain experts. Additionally, the dataset is enriched with AI-generated samples.
The model achieved an F1 score of 0.807 during evaluation.
This model was fine-tuned using a GPU / 2xNVIDIA Tesla V100 32GB.
If you find our work useful, please consider citing WASPer:
@article{...2024wasper,
title={WASPer: Propaganda Detection in Bulgarian and English},
author={....},
journal={arXiv preprint arXiv:...},
year={2024}
}