Update gensim word2vec model

前端 未结 6 611
时光取名叫无心
时光取名叫无心 2020-12-02 23:16

I have a word2vec model in gensim trained over 98892 documents. For any given sentence that is not present in the sentences array (i.e. the set over which I trained the mode

6条回答
  •  难免孤独
    2020-12-02 23:45

    1. train() expects a sequence of sentences on input, not one sentence.

    2. train() only updates weights for existing feature vectors based on existing vocabulary. You cannot add new vocabulary (=new feature vectors) using train().

提交回复
热议问题