FileNotFoundError Traceback (most recent call last)
in <cell line: 5>()
3 nmax = 50000 # maximum number of word embeddings to load
4
----> 5 src_embeddings, src_id2word, src_word2id = load_vec(src_path, nmax)
6 tgt_embeddings, tgt_id2word, tgt_word2id = load_vec(tgt_path, nmax)
in load_vec(emb_path, nmax)
2 vectors = []
3 word2id = {}
----> 4 with io.open(emb_path, 'r', encoding='utf-8', newline='\n', errors='ignore') as f:
5 next(f)
6 for i, line in enumerate(f):
FileNotFoundError: [Errno 2] No such file or directory: '/private/home/aconneau/projects/MUSE/dumped/debug/8gqhcyvoto/vectors-en.txt'
https://github.com/facebookresearch/MUSE/blob/main/demo.ipynb
src_path = '/private/home/aconneau/projects/MUSE/dumped/debug/8gqhcyvoto/vectors-en.txt' tgt_path = '/private/home/aconneau/projects/MUSE/dumped/debug/8gqhcyvoto/vectors-es.txt'
FileNotFoundError Traceback (most recent call last) in <cell line: 5>()
3 nmax = 50000 # maximum number of word embeddings to load
4
----> 5 src_embeddings, src_id2word, src_word2id = load_vec(src_path, nmax)
6 tgt_embeddings, tgt_id2word, tgt_word2id = load_vec(tgt_path, nmax)
FileNotFoundError: [Errno 2] No such file or directory: '/private/home/aconneau/projects/MUSE/dumped/debug/8gqhcyvoto/vectors-en.txt'