You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I updated the nove2vec to version 0.4.2 and now getting an error while pulling the all edges in a separate KeyedVectors instance step below while running the default script from the package edges_kv = edges_embs.as_keyed_vectors()
Error shown below
AttributeError Traceback (most recent call last) <ipython-input-4-e1dd036e6a2e> in <module> 1 # Get all edges in a separate KeyedVectors instance - use with caution could be huge for big networks ----> 2 edges_kv = edges_embs.as_keyed_vectors() ~/anaconda3/envs/default/lib/python3.8/site-packages/node2vec/edges.py in as_keyed_vectors(self) 44 """ 45 ---> 46 edge_generator = combinations_with_replacement(self.kv.index2word, r=2) 47 48 if not self.quiet: ~/anaconda3/envs/default/lib/python3.8/site-packages/gensim/models/keyedvectors.py in index2word(self) 632 @property 633 def index2word(self): --> 634 raise AttributeError( 635 "The index2word attribute has been replaced by index_to_key since Gensim 4.0.0.\n" 636 "See https://github.com/RaRe-Technologies/gensim/wiki/Migrating-from-Gensim-3.x-to-4" AttributeError: The index2word attribute has been replaced by index_to_key since Gensim 4.0.0. See https://github.com/RaRe-Technologies/gensim/wiki/Migrating-from-Gensim-3.x-to-4
Do I still have to downgrade Gensim to 3.x?
Thank you!
The text was updated successfully, but these errors were encountered:
I encountered exactly the same problem upon calling the embedding vector by edges_embs[]. Downgrading to 3.8.3 is effective and I suggest the current version of implementation should remain on Gensim3 rather than 4🤣
Hi,
I updated the nove2vec to version 0.4.2 and now getting an error while pulling the all edges in a separate KeyedVectors instance step below while running the default script from the package
edges_kv = edges_embs.as_keyed_vectors()
Error shown below
AttributeError Traceback (most recent call last) <ipython-input-4-e1dd036e6a2e> in <module> 1 # Get all edges in a separate KeyedVectors instance - use with caution could be huge for big networks ----> 2 edges_kv = edges_embs.as_keyed_vectors() ~/anaconda3/envs/default/lib/python3.8/site-packages/node2vec/edges.py in as_keyed_vectors(self) 44 """ 45 ---> 46 edge_generator = combinations_with_replacement(self.kv.index2word, r=2) 47 48 if not self.quiet: ~/anaconda3/envs/default/lib/python3.8/site-packages/gensim/models/keyedvectors.py in index2word(self) 632 @property 633 def index2word(self): --> 634 raise AttributeError( 635 "The index2word attribute has been replaced by index_to_key since Gensim 4.0.0.\n" 636 "See https://github.com/RaRe-Technologies/gensim/wiki/Migrating-from-Gensim-3.x-to-4" AttributeError: The index2word attribute has been replaced by index_to_key since Gensim 4.0.0. See https://github.com/RaRe-Technologies/gensim/wiki/Migrating-from-Gensim-3.x-to-4
Do I still have to downgrade Gensim to 3.x?
Thank you!
The text was updated successfully, but these errors were encountered: