aboSamoor / polyglot

Multilingual text (NLP) processing toolkit
http://polyglot-nlp.com
Other
2.31k stars 337 forks source link

Segmentation fault on importing polyglot Text or Word #87

Open punsiitg opened 7 years ago

punsiitg commented 7 years ago

Hello,

I have python 2.7.12 anaconda distribution installed on Mac OS Sierra 10.2. I installed polyglot using pip install polyglot and installation worked fine. However, I come across segmentation fault when importing Text or Word from polyglot.text.

  1. import polyglot ---- no error
  2. from polyglot.text import Text ---- segmentation fault: 11

Can someone please help ?

JohanWork commented 5 years ago

Did you manage to solve it?

ehben83 commented 2 years ago

Any updates on this ? Having the same issue

kuranai commented 2 years ago

As far as I could see, it is a problem with the used pycld2. I located the problem by using the python builtin faulthandler in my script:

import faulthandler 
faulthandler.enable()

With this info, I found an open pull request where the last comment has helped: https://github.com/aboSamoor/pycld2/pull/44