Tensorflow: Word2vec CBOW model

后端 未结 3 625
余生分开走
余生分开走 2020-12-30 07:25

I am new to tensorflow and to word2vec. I just studied the word2vec_basic.py which trains the model using Skip-Gram algorithm. Now I want to train using C

3条回答
  •  别那么骄傲
    2020-12-30 07:51

    Basically, yes:

    for the given text the quick brown fox jumped over the lazy dog:, the CBOW instances for window size 1 would be

    ([the, brown], quick), ([quick, fox], brown), ([brown, jumped], fox), ...
    

提交回复
热议问题