Nathaniel Robinson
Nathaniel Robinson
Hello, I am encountering this same error, but this fix has not worked for me. I seem to have the required `csv` files. Has the distances code been updated since...
To resolve this I had to replace ``` data = sparse.load_npz(zp.open(map_distance_to_filename(dist))) ``` with ``` data_dir = '/'.join(DISTANCES_FILE.split('/')[:-1]) + '/' data = sparse.load_npz(data_dir + map_distance_to_filename(dist)) ``` on line 401 of `lang2vec/lang2vec.py`...
It looks like this was a compatibility issue. When I upgraded `python` to `3.9`, neither of these fixes were necessary.