Vishakha Nagpal
Vishakha Nagpal

Reputation: 19

wmd model gensim is returning infinity

I am trying to calculate the wmd distance amongst the below 2 vectors and the result I am receiving is Infinity. I even tried just checking for word 'django' and 'django' and even then it returns inf (Infinity).

Can anyone suggest a better trained model for technical skills?

>>> import gensim.downloader as API
>>> model = api.load('word2vec-google-news-300')

>>> distance = model.wmdistance(["kafka"], ["django","pip","conda","python","django","java","springboot","rest","microservices","microservices","reddis","kafka","consumer","publisher","spark","storm","rabbitmq","customer", "service","eventbus","service","aws","aws" "cli","azure","google","cloud","shell","bash","script","config","lambda"])

>>> distance                                                                                                                         inf

Upvotes: 0

Views: 129

Answers (0)

Related Questions