transparentdemocracy / voting-data

Voting behavior data extracted from plenary reports of the Belgian federal government.
5 stars 1 forks source link

Problem with 'electronic votes' #27

Open karel1980 opened 4 months ago

karel1980 commented 4 months ago

Saw this while generating markdown. We definitely don't want this text to count as a vote for "Van der Straeten Tinne".

WARNING:root:vote count (0) does not match voters ['Comptage électronique – Elektronische telling Oui 011 Ja Non 105 Nee Abstentions 000 Onthoudingen'] (abstention)
WARNING:transparentdemocracy.politicians.fetch_politicians:Non exact name match: Comptage électronique – Elektronische telling Oui 011 Ja Non 105 Nee Abstentions 000 Onthoudingen -> Van der Straeten Tinne

My initial reaction would be to put an upper limit on the edit distance for non-exact matches. Later on we can investigate if we can find a way to deal with these.