davidberenstein1957 / classy-classification

This repository contains an easy and intuitive approach to few-shot classification using sentence-transformers or spaCy models, or zero-shot classification with Huggingface.
MIT License
209 stars 15 forks source link

numpy error #50

Closed KikeVen closed 2 days ago

KikeVen commented 2 days ago

I installed it, and when I ran it I got the following error:

ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Thank you

davidberenstein1957 commented 2 days ago

Hi @KikeVen , I will have a look this wekend.

davidberenstein1957 commented 2 days ago

@KikeVen could you add some more context about your environment and such?

davidberenstein1957 commented 2 days ago

I think it is related to this issue

https://stackoverflow.com/questions/78634235/numpy-dtype-size-changed-may-indicate-binary-incompatibility-expected-96-from

davidberenstein1957 commented 2 days ago

This should be solved in version 1.0.1

KikeVen commented 1 day ago

Thank you for your quick response.

When I pip install classy-classification it installs version 1.0.0. I installed it yesterday. Should I do an update?

I kind of found a workaround:

pip install classy-classification
pip install --upgrade numpy
pip install --upgrade pandas scikit-learn

I still get a warning when installing the dependencies, but at least it runs now.

Let me know if you think I should update.

Thank you again