DELPHES

The European Political Matcher

Raise Your Hand If You Voted in the 2019 European Election 🖐

Our Goal

Indicate the MEP and European Political Group that represents you best based on a single text input📝 or Twitter Account🐦

Let's have a look at Delphes

So how does it Work?

Part 1

Obtaining Our Data: Tweets from Members of the European Parliament (MEP)

Our Initial Dataset

Scraping the EU Parliament to Obtain MEPs' Twitter Usernames

Our Updated Dataset

Using the Twitter API to obtain MEPs' Tweets

Part 2

Converting words into something machines will understand

'.@PabloIglesias sueña con volver a los viejos tiempos: consignas a los medios públicos y censura de los medios privados. Nosotros a defender la Constitución 🇪🇸 https://t.co/IoiOwDVtTW'

Tweet

'.@PabloIglesias sueña con volver a los viejos tiempos: consignas a los medios públicos y censura de los medios privados. Nosotros a defender la Constitución 🇪🇸 https://t.co/IoiOwDVtTW'
'. @ Pablo Iglesias dreams of going back to the old days: slogans to public media and censorship of private media. We will defend the Constitution 🇪🇸 https://t.co/IoiOwDVtTW'

Tweet

Translation

Tweet

'.@PabloIglesias sueña con volver a los viejos tiempos: consignas a los medios públicos y censura de los medios privados. Nosotros a defender la Constitución 🇪🇸 https://t.co/IoiOwDVtTW'

Translation

'. @ Pablo Iglesias dreams of going back to the old days: slogans to public media and censorship of private media. We will defend the Constitution 🇪🇸 https://t.co/IoiOwDVtTW'
'pabloiglesias dreams of going back to the old days slogans to public media and censorship of private media we will defend the constitution '

Preprocessing

'pablo iglesias dreams of going back to the old days slogans to public media and censorship of private media we will defend the constitution '

dreams

constitution

From Words to Numbers

Part 3

Building a Deep Learning Model

How Would You Classify This Tweet?

What Humans Do

83 global brands exploit Uyghur slaves, Disney makes its films in the shadow of the camps, Huawei makes its market in the French political class, ...: there's no denying it, globalization is indeed the triumph of humanist principles sold in the 1990s and 2000s.

Our Neural Network

We use LSTM layers to give bigger weight to the most important words

83 global brands exploit Uyghur slaves, Disney makes its films in the shadow of the camps, Huawei makes its market in the French political class, ...: there's no denying it, globalization is indeed the triumph of humanist principles sold in the 1990s and 2000s.

Our Neural Network

I prefer cats to dogs

I prefer dogs to cats

LSTM also analyses groups of words & their order

Part 4

Results

The Challenges of Real Data

The Challenges of Real Data

Our Accuracy 

Let's Help People Vote!

politicalpred.herokuapp.com

Delphes

By simonpastor

Delphes

  • 255