openeventdata / mordecai

Full text geoparsing as a Python library
MIT License
738 stars 97 forks source link

Can't instantiate Geoparser #80

Closed RomainMularczyk closed 4 years ago

RomainMularczyk commented 4 years ago

Hi, it seems I can't instantiate Geoparser properly.

Here is the errors Python returns :

error

Thank you !

zacharyblank commented 4 years ago

Same here!

ahalterman commented 4 years ago

This seems to be causes by a mismatch between the older version of Keras used to train the models and the updated tensorflow/keras version. I've retrained the models using updated versions of all the libraries: https://github.com/openeventdata/mordecai/tree/retrain. Does that branch fix the issue for you? Note that I also refreshed the Geonames index, so you'll also have to re-download the Geonames index from here.

zacharyblank commented 4 years ago

Confirmed the retrain branch fixes the above error. Thank you.

ahalterman commented 4 years ago

Great! Thank you. I'll merge it in and update PyPI after I run some more tests.