masakhane-io / masakhane-mt

Machine Translation for Africa
MIT License
277 stars 206 forks source link

Cannot load the trained model #170

Closed Shingirai98 closed 3 years ago

Shingirai98 commented 3 years ago

I am getting this error when trying to copy the created models from the notebook storage to google drive for persistant storage

cp: cannot stat 'joeynmt/models/xhen_reverse_transformer/*': No such file or directory

cdleong commented 3 years ago

@Shingirai98 that typically means there's some problem with the path to the folder. It's very hard to say more without more information. Can you post the notebook you used, or provide screenshots, or otherwise give more detail?

Some tips that might be helpful: go to the left side of the Colab notebook and find the folder you're trying to copy, then right-click and do "copy path" image

Then paste that path somewhere, and compare it very carefully to the path in the command that starts with cp. If there's anything different, even a single character, it may not work.

Shingirai98 commented 3 years ago

Thank you, I have managed to sort out the issue. I had to create a models folder on my own and make changes on the current code for model validation of accuracy. Instead of ${tgt}{src} I reckon it should be vice versa.

Shingirai98 commented 3 years ago

Is there a way I can ask for user input and see what the model predicts?

cdleong commented 3 years ago

I believe so! I got it working once myself, I believe the documentation talks about how, let me find it.

... Ok, here is the section: https://joeynmt.readthedocs.io/en/latest/tutorial.html#testing

On Tue, Oct 12, 2021, 11:25 AM Shingirai98 @.***> wrote:

Is there a way I can ask for user input and see what the model predicts?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/masakhane-io/masakhane-mt/issues/170#issuecomment-941118467, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7LHRM6VSM5ZZSX4HQKSJDUGRHO3ANCNFSM5FV6LOOQ .

Shingirai98 commented 3 years ago

You are amazing dude! Thank you so much. I will close the issue now 🙂