Writing an .npz file creates a file that contains a dict with one entry arr_0 mapping to a zero-dimensional array that contains the dict with the actual data.
Likely this can be fixed by replacing np.savez(emb_path, emb_dict) with np.savez(emb_path, **emb_dict).
Writing an
.npz
file creates a file that contains a dict with one entryarr_0
mapping to a zero-dimensional array that contains the dict with the actual data.Likely this can be fixed by replacing
np.savez(emb_path, emb_dict)
withnp.savez(emb_path, **emb_dict)
.