Open tohich51 opened 5 years ago
节点类型要求是str类型
do you deal with this problem, I got the same problem
No, i didn't manage to fix it
I encountered this using FastText, which also uses the same Word2Vec backend from gensim. It seems the model was corrupt in my case. No idea why, but I started a new training cycle to move on.
And that code they use is really weird: wv.index2word[i] + str(self.seed)
For me, this happened when using a graph with integer node names. String nodes worked fine. If you don't want to wait for a fix in gensim, you can relabel them with relabel_nodes().
I got this issue using struc2vec and node2vec methods `--------------------------------------------------------------------------- TypeError Traceback (most recent call last)