GLUE-baselines icon indicating copy to clipboard operation
GLUE-baselines copied to clipboard

can‘t import allennlp.modules.matrix_attention import DotProductMatrixAttention

Open RenzeLou opened this issue 4 years ago • 3 comments

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 avatar Feb 06 '21 15:02 RenzeLou

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

RenzeLou avatar Feb 06 '21 15:02 RenzeLou

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

RenzeLou avatar Feb 06 '21 17:02 RenzeLou

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

RenzeLou avatar Feb 08 '21 08:02 RenzeLou