nlptown / nlp-notebooks

A collection of notebooks for Natural Language Processing from NLP Town
http://www.nlp.town
950 stars 372 forks source link

Bug in calculating average vector #7

Open rafaeldelrey opened 4 years ago

rafaeldelrey commented 4 years ago

When calculating the average vector, the code first group repeated words and adjust weights to this. But if you don't use weights at all, the average will be wrong. I will be calculated like you have removed all repeated words from the sentence.