Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Error when using the uploaded en-fr model for NMT (translate from English to French) #342

Open
Anwarvic opened this issue Sep 23, 2021 · 1 comment

Comments

@Anwarvic
Copy link

Anwarvic commented Sep 23, 2021

Thank you so much for the great effort you put into creating such a powerful model.

When I tried using the en-fr model you uploaded to the README file by running the command suggested in issue #123, it throws the following error:

Traceback (most recent call last):
  File "translate.py", line 141, in <module>
    main(params)
  File "translate.py", line 71, in main
    setattr(params, name, getattr(model_params, name))
AttributeError: 'AttrDict' object has no attribute 'bos_index'
@saikoneru
Copy link

Not sure but seems like they didn't use bos_index from the issue #338. So maybe you could remove the 'bos_index' when reloading the params?

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

No branches or pull requests

2 participants