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

Some issues with the "into English" MT starter notebook #160

Open
bmensah opened this issue Jul 5, 2021 · 0 comments
Open

Some issues with the "into English" MT starter notebook #160

bmensah opened this issue Jul 5, 2021 · 0 comments

Comments

@bmensah
Copy link

bmensah commented Jul 5, 2021

https://github.com/masakhane-io/masakhane-mt/blob/master/starter_notebook_into_English_training.ipynb

When training a Twi-to-English model, I ran into a couple of challenges. Though these errors may have been due to something I overlooked, I thought it best to post here in case these small updates could help future users:

In the third from last code block, the current code is:
!cp -r joeynmt/models/${tgt}${src}_reverse_transformer/* "$gdrive_path/models/${src}${tgt}_reverse_transformer/"

  • the tgt and src variables are in different orders
  • the directory has not been made yet, so there is an error when trying to copy something into it

This can be fixed simply with these lines:

mkdir "$gdrive_path/models/${tgt}${src}_reverse_transformer/"
!cp -r joeynmt/models/${tgt}${src}_reverse_transformer/* "$gdrive_path/models/${tgt}${src}_reverse_transformer/"

When trying to test my model in the last code block, I got an error because a checkpoint could not be found. I fixed this by using the checkpoint flag:

original line: ! cd joeynmt; python3 -m joeynmt test "$gdrive_path/models/${tgt}${src}_reverse_transformer/config.yaml"

suggested update: ! cd joeynmt; python3 -m joeynmt test "$gdrive_path/models/${tgt}${src}_reverse_transformer/config.yaml" --ckpt "$gdrive_path/models/${tgt}${src}_reverse_transformer/$filename.ckpt"

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

No branches or pull requests

1 participant