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

Ms3744 patch tokenize dataset #2

Merged
merged 2 commits into from
Aug 25, 2021

Conversation

ms3744
Copy link
Contributor

@ms3744 ms3744 commented Aug 24, 2021

The current version of the function does not work well with midi paths with directories with them in python notebooks, this is because a directory has to created before a file can be stored. For example, if the midi path is a/b/c.mid, and the output directory is d/e then the code gives an error unless d/e/a/b/ directory exists.


This PR will automatically take the name of the MIDI file and saves it in the directory as d/e/c.json. There is a commented code in line 239 if we want to concatenate the entire path as d/e/a/b/c.mid.json

The current version of the function does not work well with midi paths with directories with them in python notebooks, this is because a directory has to created before a file can be stored. For example, if the midi path is "a/b/c.mid",  and the output directory is "d/e" then the code gives an error unless "d/e/a/b/" directory exists. This code will automatically take the name of the MIDI file and saves it in the directory as "d/e/c.json". There is a commented code in line 239 if we want to concatenate the entire path as "d/e/a/b/c.mid.json"
@Natooz Natooz merged commit de360a9 into Natooz:main Aug 25, 2021
@Natooz
Copy link
Owner

Natooz commented Aug 25, 2021

Hello Megha, thanks for this fix ! :)
PR done ans releasing 0.1.4 !

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

Successfully merging this pull request may close these issues.

2 participants