Closed us closed 5 years ago
Thanks ! but I think it's wrong about CBOW
In CBOW mathematical expression, P(w_target|{set of w_context}), not cbows.append([w, target])
So cbows.append([context, target])
maybe right.
@us
mathematical expression reference : http://mccormickml.com/assets/word2vec/Alex_Minnaar_Word2Vec_Tutorial_Part_II_The_Continuous_Bag-of-Words_Model.pdf
@us please see this code! https://github.com/FraLotito/pytorch-continuous-bag-of-words/blob/master/cbow.py#L43
Inverted skip-gram files output and input to cbow method.