openeventdata / mordecai

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

Can Mordecai.GeoParser() run on google colab #108

Open saydeh1 opened 2 years ago

saydeh1 commented 2 years ago

Hi, I am having issues with running Mordecai Geoparser() on my windows machine and am wondering if it could run in google colab environment? Thanks, Saydeh

rjadr commented 1 year ago

I got it running on Google Colab, check this notebook!

saydeh1 commented 1 year ago

Thank you

nafis-saad commented 1 year ago

I am facing problem to in the Geoparser section. While running the geo = Geoparser() in collab, I am having an attribute Error: module 'collections' has no attribute 'Mapping'. Can anyone please solve the issue?

rjadr commented 1 year ago

@nafis-saad I fixed the issue in the notebook

nafis-saad commented 1 year ago

@rjadr Thanks a lot! Its Working now. However, I didn't understand why you used os.getpid() to terminate the process forcefully. I got runtime error on the getpid method and consequently I had to avoid it to execute the code.

rjadr commented 1 year ago

@nafis-saad that was just to force the runtime to restart, but I'll remove it.

nafis-saad commented 11 months ago

The collab notebook is not again working, I think this part is not working (!wget https://andrewhalterman.com/files/geonames_index.tar.gz --output-file=wget_log.txt !tar -xzf geonames_index.tar.gz). Can you solve this? Thanks in advance

rjadr commented 11 months ago

Looks like the download link is broken, try replacing it with https://s3.amazonaws.com/ahalterman-geo/geonames_index.tar.gz

nafis-saad commented 11 months ago

have you used Mordecai3. I am having an error: DocTransformerOutput' object has no attribute 'tensors'

Can you help me on this

On Fri, Oct 27, 2023 at 1:18 PM RJ Adriaansen @.***> wrote:

Looks like the download link is broken, try replacing it with https://s3.amazonaws.com/ahalterman-geo/geonames_index.tar.gz

— Reply to this email directly, view it on GitHub https://github.com/openeventdata/mordecai/issues/108#issuecomment-1783255484, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXRITXWLHDS5UAGI6KFAHZLYBPUHZAVCNFSM5UW44CK2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZYGMZDKNJUHA2A . You are receiving this because you were mentioned.Message ID: @.***>

nafis-saad commented 11 months ago

Looks like the download link is broken, try replacing it with https://s3.amazonaws.com/ahalterman-geo/geonames_index.tar.gz

Its not working, when i run the the geoparse it shows (tuple index out of range)... Can you fix the error and share the updated collab notebook.

rjadr commented 11 months ago

@nafis-saad I updated the original notebook, and made one for mordecai3 as well.