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

AssertionError: assert data_dir #198

Open
kairosdojo opened this issue Sep 9, 2020 · 0 comments
Open

AssertionError: assert data_dir #198

kairosdojo opened this issue Sep 9, 2020 · 0 comments

Comments

@kairosdojo
Copy link

kairosdojo commented Sep 9, 2020

The README file states that, if you want to train a g2p model, you should run g2p-seq2seq with this syntax:

g2p-seq2seq --train train_dictionary.dic --model_dir model_folder_path

Unfortunately this syntax yields the following error:

File "[...]l/g2p_seq2seq/g2p_problem.py", line 238, in dataset
assert data_dir
AssertionError

Fix

Looking closely at https://github.com/cmusphinx/g2p-seq2seq/blob/master/g2p_seq2seq/g2p_problem.py#L238 it's just a matter of adding the folder, apparently.

In fact, this works:
g2p-seq2seq --train ./train_dictionary.dic --model_dir model_folder_path

My suggestion is to highlight the need of the directory in the README too.

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

No branches or pull requests

1 participant