37 lines
613 B
Plaintext
37 lines
613 B
Plaintext
Quick and dirty script to count occurence of street name in a csv file using fuzzy matching
|
|
|
|
arg1 is list of street (see example file rue2.csv)
|
|
|
|
arg2 is csv file to be parsed (coming from barometre's results)
|
|
|
|
example usage:
|
|
|
|
|
|
python script.py rue2.csv sample.txt | sort
|
|
Albert_Einstein 1
|
|
Anatole_France 3
|
|
Andre_Philip 1
|
|
Antonin_Perrin 1
|
|
Antonins 2
|
|
Bonnet 1
|
|
Boulevard 2
|
|
Buers 1
|
|
Centre 3
|
|
Charles_Hernu 1
|
|
Charmettes 2
|
|
Charny 2
|
|
Colin 1
|
|
Croix_Luizet 2
|
|
Cusset 5
|
|
Descartes 1
|
|
Docteur_Ollier 1
|
|
Docteur_Rollet 1
|
|
Doua 4
|
|
Edouard_Vaillant 2
|
|
Emile_Zola 13
|
|
Flachet 1
|
|
France 4
|
|
Francia 1
|
|
Francis_de_Pressense 3
|
|
Gabriel_Peri 1
|
|
... |