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$ Commented Oct 18, 2016 at 12:57

1 Answer 1

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$ Commented Oct 18, 2016 at 13:01

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.