-
Notifications
You must be signed in to change notification settings - Fork 122
Open
Description
In Chapter 11 word_embedding.py in the Github repo and also in the book, the following code samples raise an attribute error because "vw" is deprecated at least in gensim 4.2.0:-
vector = model.wv['computer']
doc_vector = np.mean([model.wv[word] for word in doc_sample], axis=0)
Simply removing the 'wv' attribute solves the issue as per the SO solution for a similar issue
Metadata
Metadata
Assignees
Labels
No labels