bug on firefox - words get multiple vectors
denik opened this issue · comments
Denis Bilenko commented
Denis Bilenko commented
I noticed in the docs, it says there are known issues with FF. Feel free to close this if no plans to support FF.
Xin Rong commented
Yes... that is the very issue I observed in FF. Do you have any idea what is causing this? Might be an easy fix.
Denis Bilenko commented
Perhaps in this line unique() does not do what the name implies?
https://github.com/ronxin/wevi/blob/master/js/toyw2v.js#L104
vocab = $.unique(vocab).sort()
See http://stackoverflow.com/a/8137873 which suggests sorting first and then calling unique().