I built a small app that allows users to search for keywords within the electoral programs of various German political parties. Next Sunday, 2021-09-26, we’ll have a federal election and I thought I could help people understanding the programs a bit better by building an app such as this.
Users can select an individual party to analyse the context of the matches against their keyword. This context is then analysed in terms of topics and entities (using TextRazor). A few people (myself included already) found some interesting results this way
I tried to make the app look somewhat nice on mobile by removing the enlarge buttons for the charts so that the content is always centred (using this markdown / CSS “hack” I’ve seen mentioned here).
Vielleicht hättest du noch Stoppwörter rausfiltern können (der, die, das), aber … vielleicht ist das auch gut so. Man kann zum Beispiel sehen, wer am meisten gendert (innen)
Nice app @caff9 - I don’t speak German, but got the impressions you compute which parties talk most about the search term, then how a set of themes/topics relates in that query context, then how a selected theme/topic breaks down into a set of concepts/entities. At each stage you show the matching text. (All easy to see from main.py).
Are the topics and entities pre-defined (if so, where), or are they extracted by TextRazor?
Cool, vielen Dank für’s Feedback!
An den Funktionen für die Textanalyse ist noch einiges zu tun, das stimmt… Ich wollte nur schon mal eine erste Version vor der Wahl fertig haben
Ich werde da noch einige Sachen anpassen, so wie z.B. eine vernünftige Erkennung von Zeilenumbrüchen.
Thanks for checking out the app
The topics and entities are extracted by TextRazor. I would really like to find a good Python package which I could use for the topic extraction but so far - that is without diving into the whole world of training models, etc. - I haven’t found a solution that can extract nicely formatted topics and entities as it is the case with TextRazor.
I had heard about BERT before but I haven’t tried working with it before.
Thank you for pointing out these resources to me, they look very promising! As I’m currently looking into an upgrade version of my app with more features, I’ll definitely look deeper into BERT in general and BERTopic in specific. Thanks again!
Have you worked with BERTopic so far? What were your experiences?
This is indeed a nice app. Especially kind of ironic, if you search for the word freedom, the Pirate Party is right at the top. Also a few suggestions, a dropdown (topics from e.g. Wahlomat) or some simple charts exploring the most used words/topics and giving an overview could come in handy.
Thanks for checking out the app @chris_klose, really appreciate it
Cool, thank you for the suggestions - they make a lot of sense and I’ll consider them for the next iteration of this!
@asehmi Good question
In the end, it didn’t change my decision on which party to vote for.
I will say, however, that it actually helped me in diving into that specific party’s program a bit deeper and to also find out about topics for which that party’s line does not align with my preference. I was then able to compare that position with other parties‘ positions and in the end found that I still preferred that party. So I think it helped me a bit in making an informed choice.
The whole topic of working on the app and going through the programs also made me even more interested in politics so this little project was definitely time well invested.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.