tagoyal / sow-reap-paraphrasing

Contains data/code for the paper "Neural Syntactic Preordering for Controlled Paraphrase Generation" (ACL 2020).
77 stars 9 forks source link

allenlp error #12

Closed TITC closed 2 years ago

TITC commented 3 years ago

when I run sh create_sow_data.sh in google colab ,it give me fellow information. I have installed the requirement.txt. could you give me any advice?

/content/sow-reap-paraphrasing/processing# sh create_sow_data.sh
mkdir: cannot create directory ‘/content/sow-reap-paraphrasing/sow_intermediate’: File exists
Traceback (most recent call last):
  File "get_elmo_embeds.py", line 1, in <module>
    from allennlp.commands.elmo import ElmoEmbedder
ImportError: No module named allennlp.commands.elmo

my allennlp version is 0.8.0.

TITC commented 3 years ago

I found the correlated issue at annlennlp official website it give below account:

We removed the elmo command in v1.0. If you want to use the elmo command then you need to check out v0.9.0. We removed this command because elmo is becoming a bit old and we didn't think it made sense to continue supporting it as a top-level command.

What are you trying to do specifically? You might still be able to accomplish your goals in 1.0, but I'm not sure exactly what you're trying to do.


but my allennlp version is earlier than 0.9.0, it still not work.

TITC commented 3 years ago

can I replace it with other modules?

from allennlp.commands.elmo import ElmoEmbedder
tagoyal commented 3 years ago

Yes. I'm currently a little busy with a deadline, but if issues still persists, I can look at them after Tuesday.

TITC commented 3 years ago

thanks for your reply, first things first.

TITC commented 3 years ago

Yes. I'm currently a little busy with a deadline, but if issues still persists, I can look at them after Tuesday.

the problem still exists. I only successfully install it by coincidence and can't reproduce it anymore.

but due do I think it can be replaced by BERT EMbedding, so as I think problem solved.

TITC commented 3 years ago

problem solved directly by this issue.

TITC commented 3 years ago

Could you add the overrides version to requirement.txt? @ @tagoyal