2.2.7. recsys.utils.vec_utils.cvt_to_word_ids¶
-
recsys.utils.vec_utils.
cvt_to_word_ids
(word_cnt_vec)¶ Convert sparse word count vector to word ids.
- Parameters
word_cnt_vec (sparse matrix, shape = (1, vocab_size_)) – Word count vector of item \(j\).
- Returns
word_ids – Word ids.
- Return type
ndarray, shape = (n_words,)