1
$\begingroup$

I trained a word2vec from the gensim package. Even though I pass a word in the model.train() method, it doesnt appear in the model's vocab.

  1. Can such a case arise?
  2. Why does it happen so?
$\endgroup$
1
  • $\begingroup$ Will you, please provide a detail description of error, plus the code? It will help in sorting it out. Cheers! $\endgroup$ – Abhishek Jaiswal Oct 18 '16 at 12:57
1
$\begingroup$

The reason behind this is the default value for min_count is 5 in word2vec. Since my words have very less frequency, they are not being added to the vocabulary.

$\endgroup$
1
  • 1
    $\begingroup$ Seems you resolved it at your own. Is it? If yes, then update the answer, it will help other. Cheers! $\endgroup$ – Abhishek Jaiswal Oct 18 '16 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.