fairseq icon indicating copy to clipboard operation
fairseq copied to clipboard

Use absolute path in scripts

Open gonglinyuan opened this issue 3 years ago • 1 comments

The script with relative paths raises an error of "No such file or directory: data-bin/wikitext-103/dict.txt" in fairseq-hydra-train.

Before submitting

  • [ ] Was this discussed/approved via a Github issue? (no need for typos, doc improvements)
  • [x] Did you read the contributor guideline?
  • [x] Did you make sure to update the docs?
  • [x] Did you write any new necessary tests?

What does this PR do?

The script with relative paths raises an error of "No such file or directory: data-bin/wikitext-103/dict.txt" in fairseq-hydra-train.

PR review

Anyone in the community is free to review the PR once the tests have passed. If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

gonglinyuan avatar Feb 06 '22 22:02 gonglinyuan

Thanks, this saved me some time!

JeanKaddour avatar Sep 07 '22 11:09 JeanKaddour