-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with pip install #43
Comments
Thanks for reporting. This looks like an issue with gensim/numpy compatibility. I'm finding it documented here: You could try downgrading numpy, or upgrading gensim beyond the recommended 3.8.3. Does either of those work? |
These packages/versions worked for me:
I tried to open a PR but didn't have access. |
Interesting - what Python version does that combination work on? |
I can't get those version numbers to run on Python 3.11 for example. |
I'm using python |
Hm, I tested with Python 3.11.2, but those library versions shouldn't work with the pretrained models online, since they were pre-torch 2.X/transformers 4, so I am getting (and you should be getting):
Maybe you are only using it for segmentation? Were you able to get parsing to run with those library versions? Or did you retrain models? |
I've been trying to get hebpipe working as well. I'm facing the same issue. |
@amir-zeldes I haven't tried anything besides |
@ztkuperman yes, those are all indications of the version incompatibilities. Let me repeat what I just answered on a similar thread on the repo for just the segmenter:
OK, so two answers for now:
Python 3.8: (@bfeif this should also work for you if you can install a clean environment)
The segmenter model is training right now and looks like it will work fine. For the full hebpipe pipeline I think I have most things running on torch 2, but I don't know about training the MTL lemmatizer. @nitinvwaran do you have some documentation on training the MTL transformer model including lemmatization? |
For just the segmenter check out the preliminary fix here for torch 2.1, xgboost 2.0.2 and flair 0.13.0. I still need to refactor some things but could then update the rest of the pipeline. This seems to work fine on Python 3.11 at least. |
The only way I could have installed the recommended dependencies was by using: However, I still jump from error to error; seems like it would take a long time to resolve. Thanks! Edit:
To validate, your configuration does not work for me as well. Yes, it installs, but the code does not work due to compatibility issues (e.g., trying to use keys that don't exist). |
See full traceback:
For reference, I'm using
pip 23.3.1
andpython 3.11.5
.The text was updated successfully, but these errors were encountered: