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

can‘t import allennlp.modules.matrix_attention import DotProductMatrixAttention #23

Open
RenzeLou opened this issue Feb 6, 2021 · 3 comments

Comments

@RenzeLou
Copy link

RenzeLou commented Feb 6, 2021

when I follow the instructions and download allennlp==0.4.0 successfully, an error occured as below:

from allennlp.modules.matrix_attention import DotProductMatrixAttention
ImportError: cannot import name 'DotProductMatrixAttention'

but I can't find any specific release of allennlp which contain this the fuction 'DotProductMatrixAttention'

@RenzeLou
Copy link
Author

RenzeLou commented Feb 6, 2021

I forget mentioning the Error location:
in "src/models.py", line 17, in

@RenzeLou
Copy link
Author

RenzeLou commented Feb 6, 2021

It seems like allennlp==0.4.0 is not compatible with the newest code...
Can anybody help me?

@RenzeLou
Copy link
Author

RenzeLou commented Feb 8, 2021

This problem had been solved after I changed the Allennlp to 0.5.1

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