Instructions to use jlattman/EU_sentiment_german_parliament with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jlattman/EU_sentiment_german_parliament with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="jlattman/EU_sentiment_german_parliament")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("jlattman/EU_sentiment_german_parliament") model = AutoModelForSequenceClassification.from_pretrained("jlattman/EU_sentiment_german_parliament", device_map="auto") - Notebooks
- Google Colab
- Kaggle
EU sentiment detection model
This model is trained to classify the sentiment of statements on the European Union. It finetuned a bert-base-german-cased model on 1700 sentences from the German parliament. It is trained to detect policy skepticism, hard EU skepticism, EU praisal, demand for more EU intergration and EU Speech.
Examples:
- EU Speech: Mit dem heutigen Antrag hat Die Linke wieder einmal
bewiesen, dass sie keinerlei Interesse an einer seriösen
Europa- und Außenpolitik hat.
- More EU: Entscheidend ist, dass diese Dinge harmonisch europäisch geregelt werden.
- Policy Skepticism: Es gibt Eurobarometerumfragen, wonach bestimmte Institutionen in Europa, gerade bürokratische Organisationen, von der Bevölkerung hart kritisiert werden.
- EU praisal: Sehr geehrte Damen und Herren, Europa ist nicht nur
ein Friedensprojekt - es war schon immer auch ein Projekt, gemeinsam und solidarisch den Wohlstand zu sichern.
- Hard Euroskepticism: Der Moloch EU ist unreformierbar geworden, und zwar aus einem Grund, den Sie nicht sehen wollen.
Model Details Finetuned from model: google-bert/bert-based-german-cased
Epochs: 5
F1 Weighted (5 categories): 0.5911
Lattmann, J. (2025, March 17). Detecting EU sentiment in texts: A LLM Machine Learning application for Euroscepticism research. https://doi.org/10.31219/osf.io/mravb_v1
- Downloads last month
- 12