Run this model with HF Jobs
Run IDA-UNISA/PropagandaDetection on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/IDA-UNISA/PropagandaDetection. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/IDA-UNISA/PropagandaDetection on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use IDA-UNISA/PropagandaDetection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IDA-UNISA/PropagandaDetection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="IDA-UNISA/PropagandaDetection")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("IDA-UNISA/PropagandaDetection") model = AutoModelForSequenceClassification.from_pretrained("IDA-UNISA/PropagandaDetection", device_map="auto") - Notebooks
- Google Colab
- Kaggle
PropagandaDetection
The model is a Transformer network based on a DistilBERT pre-trained model. The pre-trained model is fine-tuned on the SemEval 2023 Task 3 training dataset for the propaganda detection task.
Hyperparameters :
Batch size = 16; Learning rate = 2e-5; AdamW optimizer; Epochs = 4.
Accuracy = 90 % on SemEval 2023 test set.
References
@inproceedings{bangerter2023unisa,
title={Unisa at SemEval-2023 task 3: a shap-based method for propaganda detection},
author={Bangerter, Micaela and Fenza, Giuseppe and Gallo, Mariacristina and Loia, Vincenzo and Volpe, Alberto and De Maio, Carmen and Stanzione, Claudio},
booktitle={Proceedings of the The 17th International Workshop on Semantic Evaluation (SemEval-2023)},
pages={885--891},
year={2023}
}
- Downloads last month
- 489