Downloads · 30 days
278
3% of all-time downloads
mlburnham/Political_DEBATE_base_v1.0
Political_DEBATE_base_v1.0 is a zero-shot classification model from mlburnham. Use it when you need labels you did not train the model on. It is set up for transformers. The card lists the license as mit.
Political DEBATE (DeBERTa Algorithm for Textual Entailment) is an NLI classifier trained for zero-shot and few-shot classification of political documents.
Downloads · 30 days
278
3% of all-time downloads
All-time downloads
9.1K
Public
Parameters
184M
738 MB on disk
Likes
9
Public
Click a slice to open those files.
.safetensors738 MB · 99%
From the Hugging Face model README
Political DEBATE (DeBERTa Algorithm for Textual Entailment) is an NLI classifier trained for zero-shot and few-shot classification of political documents.
Zero-shot tutorial
Few-shot tutorial
The model was trained using Moritz Laurer's zero shot model as the foundation, and then trained further using the PolNLI dataset. The model was trained for four classification categories:
The PolNLI dataset contains documents from social media, news outlets, congressional bills, court case summaries, and more. Classification should work well across a broad set of document sources and subjects, but for best performance refer to the recommendations section.
If you use this model or the PolNLI data set please cite:
@article{burnham2024political,
title={Political DEBATE: Efficient Zero-shot and Few-shot Classifiers for Political Text},
author={Burnham, Michael and Kahn, Kayla and Wang, Ryan Yank and Peng, Rachel X},
journal={arXiv preprint arXiv:2409.02078},
year={2024}
}
NLI classifiers work by pairing a document (AKA the 'premise') with a 'hypothesis', and determining if the hypothesis is true given the content of the document. The hypothesis is supplied by the user and can be thought of as a simplified version of a prompt for an LLM. It's best to keep hypotheses short and simple with a single classification criteria. If a more complicated hypothesis is necessary, consider few-shot training. For more detailed reading on using NLI classifiers see:
@article{burnham2024stance,
title={Stance Detection: A Practical Guide to Classifying Political Beliefs in Text},
author={Burnham, Michael},
journal={Political Science Research and Methods},
year={2024}
}
Evaluation is primarily conducted on the PolNLI test set. No hypotheses in the PolNLI test set are present in the training data in order to estimate zero-shot performance.