Open dbl001 opened 5 years ago
vocab_size = embed_matrix.shape[0]
(idx_to_word, word_to_idx, freqs, pivot_ids, target_ids, doc_ids, **_embed_matrix_**) = utils.load_preprocessed_data(data_path, load_embed_matrix=load_embeds)
Perhaps:
vocab_size = embed_matrix.shape[0] if load_embeds else len(idx_to_word)