I get this error when I load the google pre-trained word2vec to train doc2vec model with my own data. Here is part of my code:
model_dm=doc2vec.Doc2Vec(dm=1,dbow_words=1,vector_size=400,window=8,workers=4)
model_dm.build_vocab(document)
model_dm.intersect_word2vec_format('home/xxw/Downloads/GoogleNews-vectors-negative300.bin',binary=True)
model_dm.train(document)
But I got this error:
'Doc2Vec' object has no attribute 'intersect_word2vec_format'
Can you help me with the error? I get the google model from https://s3.amazonaws.com/dl4j-distribution/GoogleNews-vectors-negative300.bin.gz, and my gensim is the latest version I think.