Closed dbl001 closed 5 years ago
That function will not return embed_matrix
when load_embed_matrix=False
. Use it like this:
load_embeds = False
# Load data from files
(idx_to_word, word_to_idx, freqs, pivot_ids,
target_ids, doc_ids) = utils.load_preprocessed_data(data_path, load_embed_matrix=load_embeds)
In run_20newsgroups.py:
When load_embeds=False, utils.load_preprocessed_data() gets an exception unpacking the results:
ValueError Traceback (most recent call last)