From 5366bc6b946b2374b5e3de28f26103bb3d21f148 Mon Sep 17 00:00:00 2001 From: Sebastien Arod Date: Fri, 7 Oct 2022 17:15:39 +0200 Subject: [PATCH] Fix : ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject See Similar to https://github.com/RaRe-Technologies/gensim/issues/3097 --- .gitignore | 3 +++ requirements.txt | 4 ++-- sherlock/features/paragraph_vectors.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6c1add7..50bad2b 100644 --- a/.gitignore +++ b/.gitignore @@ -83,6 +83,7 @@ celerybeat-schedule # additional files/directories glove.6B.50d.txt +glove.6B.50d.txt*tmp par_vec_trained_400.pkl.docvecs.vectors_docs.npy data/data/ data/work/ @@ -107,6 +108,7 @@ venv*/ ENV/ env.bak/ venv.bak/ +.conda37 # IDE .spyderproject @@ -129,4 +131,5 @@ venv.bak/ tmp wheel /sherlock/features/*.npy +/sherlock/features/*.npy*tmp *.csv diff --git a/requirements.txt b/requirements.txt index 00d2898..bf4967e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,7 @@ chardet==3.0.4 docutils==0.14 gast==0.2.2 gdown==4.3.0 -gensim==3.8.0 +gensim==3.8.3 google-pasta==0.1.7 grpcio==1.22.0 h5py==2.9.0 @@ -36,7 +36,7 @@ requests==2.22.0 s3transfer==0.2.1 scikit-learn==0.24.2 six==1.12.0 -smart-open==1.8.4 +smart-open==1.11.1 scipy==1.5.4 setuptools~=47.1.0 tensorboard==1.15.0 diff --git a/sherlock/features/paragraph_vectors.py b/sherlock/features/paragraph_vectors.py index 1433593..f4bd9c3 100644 --- a/sherlock/features/paragraph_vectors.py +++ b/sherlock/features/paragraph_vectors.py @@ -10,7 +10,7 @@ from datetime import datetime from sherlock.global_state import is_first -assert gensim.models.doc2vec.FAST_VERSION > -1, "This will be painfully slow otherwise" +assert gensim.models.word2vec_inner.FAST_VERSION > -1, "This will be painfully slow otherwise" def tokenise(values):