Skip to content

Commit

Permalink
Fix : ValueError: numpy.ndarray size changed, may indicate binary inc…
Browse files Browse the repository at this point in the history
…ompatibility. Expected 88 from C header, got 80 from PyObject (#61)

See Similar to piskvorky/gensim#3097
  • Loading branch information
sarod authored Feb 6, 2023
1 parent 89804ea commit f05882d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -107,6 +108,7 @@ venv*/
ENV/
env.bak/
venv.bak/
.conda37

# IDE
.spyderproject
Expand All @@ -129,4 +131,5 @@ venv.bak/
tmp
wheel
/sherlock/features/*.npy
/sherlock/features/*.npy*tmp
*.csv
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sherlock/features/paragraph_vectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f05882d

Please sign in to comment.