Closed pamelafox closed 5 months ago
Fixes #9
This PR changes the generate script to make sure the output directory exists. If it doesn't, it creates it.
[ ] Yes [X] No
What kind of change does this Pull Request introduce?
[ ] Bugfix [X] Feature [ ] Code style update (formatting, local variables) [ ] Refactoring (no functional changes, no api changes) [ ] Documentation content changes [ ] Other... Please describe:
Try generate with a non-existent directory:
python3 -m scripts generate --output=example_input2/qa.jsonl --numquestions=2
Purpose
Fixes #9
This PR changes the generate script to make sure the output directory exists. If it doesn't, it creates it.
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
Try generate with a non-existent directory:
python3 -m scripts generate --output=example_input2/qa.jsonl --numquestions=2