Lda2vec-Tensorflow icon indicating copy to clipboard operation
Lda2vec-Tensorflow copied to clipboard

Issues in 'run_20_newgroups.py' when load_embed = False

Open dbl001 opened this issue 6 years ago • 1 comments

  1. vocab_size does not get set with load_embed = False E.g.
vocab_size = embed_matrix.shape[0] 
  1. utils.load_preprocessed_data() returns 6 parameters (not 7) when load_embed = False
(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)

dbl001 avatar Jun 23 '19 17:06 dbl001

Perhaps:

vocab_size = embed_matrix.shape[0] if load_embeds else len(idx_to_word)

dbl001 avatar Jun 24 '19 18:06 dbl001