Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Not Found Error #3

Open
Ezharjan opened this issue Dec 29, 2023 · 0 comments
Open

File Not Found Error #3

Ezharjan opened this issue Dec 29, 2023 · 0 comments

Comments

@Ezharjan
Copy link

After downloading the dataset you mentioned, I found that there is no such directory or file as you wrote in your code

    test_src = [line.strip() for line in open(join(dataset_dir, 'devtest-first100/{}.devtest.first100'.format(src_lang))).readlines()]
    test_tgt = [line.strip() for line in open(join(dataset_dir, 'devtest-first100/{}.devtest.first100'.format(tgt_lang))).readlines()]
...

If I run the test_flores101.py script directly it shows error saying that the directory is not found.

Only after I changed it to the code below did it run correctly:

    test_src = [line.strip() for line in open(join(dataset_dir, 'devtest-first100/{}.devtest'.format(src_lang))).readlines()]
    test_tgt = [line.strip() for line in open(join(dataset_dir, 'devtest-first100/{}.devtest'.format(tgt_lang))).readlines()]
...

So it should be devtest-first100/{}.devtest rather than devtest-first100/{}.devtest.first100, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant