snowballstem / pystemmer

Python stemming library using snowball stemmers
https://snowballstem.org/
Other
245 stars 46 forks source link

building from scratch errors #20

Closed ghost closed 5 years ago

ghost commented 6 years ago

I grabbed the latest snowball module and built it from scratch. After that i copied the whole snowball folder to pystemmer. The installation succeeds this way and i have the new stemmers,. however, the import gives the following error:

removing 'PyStemmer-1.3.0' (and everything under it)
**********************************************************************
File "docs/quickstart.txt", line 8, in quickstart.txt
Failed example:
    import Stemmer
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest quickstart.txt[0]>", line 1, in <module>
        import Stemmer
    ImportError: /home/ubuntu/boostai/pystemmer/dist/PyStemmer-1.3.0/Stemmer.so: undefined symbol: arabic_UTF_8_create_env

any ideas how to fix it? im basically trying to use the unreleased stemmers and they compile okay in the snowball module.

ojwb commented 6 years ago

Sounds like you aren't linking in the arabic stemmer.

ojwb commented 5 years ago

I've just updated the repo to wrap the recently released Snowball 2.0.0 so closing this now.

ghost commented 5 years ago

Thank you.