Add inference of missing coordinates from Nuts4Nuts #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This code add uses Nuts4Nuts:
http://nuts4nutsrecon.spaziodati.eu/
to infer coordinates from Wikipedia articles which are missing the coordinates.
See a preview of the result here:
http://img18.imageshack.us/img18/3734/igzv.png
(coordinates inferred with n4n have a blu icon)
The file with the list of articles and coordinates can be generated running:
python nuts4nuts_infer.py
currently a call to spaziodati.eu and one to geonames is made to get the name of the NUT2 (administrative division corresponding to italian "Comune") and the coordinates.
The new webpages can be generated with:
launch_script.py -n -w
Nuts4Nuts currently work only for Italian Wikipedia articles and places in Italy, also since machine learning techniques are used its accuracy (~ 70%) has to be considered.