mlburnham/PoliStance_Affect
Viewer • Updated • 26.8k • 25
How to use mlburnham/deberta-v3-large-polistance-affect-v1.1 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("zero-shot-classification", model="mlburnham/deberta-v3-large-polistance-affect-v1.1") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("mlburnham/deberta-v3-large-polistance-affect-v1.1")
model = AutoModelForSequenceClassification.from_pretrained("mlburnham/deberta-v3-large-polistance-affect-v1.1")This model adapts Moritz Laurer's zero shot model for political texts. It is currently trained for zero-shot classification of stances towards political groups and people, although it should also preform well for topic and issue stance classification. Further capabilities will be added and benchmarked as more training data is developed.
The model was trained using the PoliStance Affect and PoliStance Affect_QT datasets.
The test set for both datasets contains documents about six politicians that were not included in the training set in order to evaluate zero-shot classification performance.
Results below are performance on the PoliStance Affect test set.
