textcat_goemotions - creation of training directory on Windows causes error - #42
Merged
Conversation
svlandeg
suggested changes
Mar 1, 2021
Contributor
There was a problem hiding this comment.
Thanks for the PR! This cross-platform incompatibility was reported earlier in explosion/spaCy#6957 and updating this project is a nice contribution towards resolving that :-)
I'll just mark this as "request changes" as the training_directory variable is not yet used consistently.
svlandeg
approved these changes
Mar 1, 2021
polm
pushed a commit
to polm/projects
that referenced
this pull request
May 4, 2021
… error (explosion#42) * altered mkdir script to run from python (i.e. to be os agnostic) * added var and updated command, tested on windows and linux * removed variable, reference training directly Co-authored-by: Tufts <ctufts@subaru.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When running the
textcat_goemotionsexample viapython -m spacy project run allon Windows 10, the creation of thetrainingdirectory causes an error due to the path structure on windows. The change in this PR uses pythonos.makedirto create the directory to make it OS agnostic. This is my first time contributing to this repo, so please let me know if there are any additional contributor gates I need to follow. Thanks.The log of the original error seen is below: