ng-j-p / rouge-we

ROUGE summarization evaluation metric, enhanced with use of Word Embeddings
MIT License
22 stars 12 forks source link

new version of gensim #2

Open rottik opened 7 years ago

rottik commented 7 years ago

Hi, this function

models.Word2Vec.load_word2vec_format

is deprecated in new gensim. It's solved by replacing Word2Vec by KeyedVectors. #self.word2vec_model = models.Word2Vec.load_word2vec_format(config['word2vec_model'], binary=True ) self.word2vec_model = models.KeyedVectors.load_word2vec_format(config['word2vec_model'], binary=True)

ng-j-p commented 7 years ago

Thanks for the note, I'd see if I can update the code soon.

On Jul 11, 2017 11:19 AM, "Michal Rott" notifications@github.com wrote:

Hi, this function

models.Word2Vec.load_word2vec_format

is deprecated in new gensim. It's solved by replacing Word2Vec by KeyedVectors.

self.word2vec_model = models.Word2Vec.loadword2vec

format(config['word2vec_model'], binary=True ) self.word2vec_model = models.KeyedVectors.load_word2vec_format(config['word2vec_model'], binary=True)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ng-j-p/rouge-we/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ABgNLkuIQiL4JHjt07wBM26WFMdNfXiyks5sM5J3gaJpZM4OUZhQ .