seomoz / word2gauss

Gaussian word embeddings
MIT License
190 stars 52 forks source link

div 0 error cause nan in phrase vector #22

Open fuzihaofzh opened 6 years ago

fuzihaofzh commented 6 years ago

Hi, I found that when the phrase is empty, length is 0, and it will div 0, thus casue the vector to be nan. I will add a pull request to solve this.