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

TypeError: forward() got an unexpected keyword argument 'lm_labels' #3

Closed
SadeghRahmaniB opened this issue Mar 27, 2022 · 1 comment

Comments

@SadeghRahmaniB
Copy link

SadeghRahmaniB commented Mar 27, 2022

Hi,

Thank you for sharing this source code.
I was trying to run the script "train_MAMS_sentiment.py" that the error "TypeError: forward() got an unexpected keyword argument 'lm_labels'" happened.
Is there any solution to solve this error?

Best regards.

@SadeghRahmaniB
Copy link
Author

I solved it!
It has a really simple solution that you have to rename the lm_labels to labels in the kwargs of input variable in the seq2seq_model_M.py, function _get_inputs_dict and that's it.
similar to the issue priya-dwivedi/Deep-Learning#137

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