Closed bjascob closed 2 years ago
The above commit looks like it fixes the issue. Note that this was happening when running amr_view with transformers 4.4.2.
Also note that model generate_t5
and generate_t5wtense
have similar import structure but don't seem to cause this issue (note parse_t5
is imported first). If this problem comes up in those models, try putting the import transformers
in the code as above.
When running
amr_view
I am getting an import error, though I'm not sure exactly why. The full error is..The library is installed and loading the model from the command line (stog = amrlib.load_stog_model()) works fine. I'm guessing this version of
transformers
has some dynamic loading issue for that module.The simple fix is to put
import transformers
on the line above the error. that extra import seems to fix the issue.