Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

demo notebook references unavailable private files #197

@slashdottir

Description

@slashdottir

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)

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions