GLUE-baselines
GLUE-baselines copied to clipboard
can‘t import allennlp.modules.matrix_attention import DotProductMatrixAttention
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'
I forget mentioning the Error location:
in "src/models.py", line 17, in
It seems like allennlp==0.4.0 is not compatible with the newest code... Can anybody help me?
This problem had been solved after I changed the Allennlp to 0.5.1