dmmiller612 / bert-extractive-summarizer

Easy to use extractive text summarization with BERT
MIT License
1.39k stars 305 forks source link

error running "pip install bert-extractive-summarizer" #4

Closed RabbitJackTrade closed 4 years ago

RabbitJackTrade commented 5 years ago

While trying the installation, I received the following:

Collecting torch>=0.4.1 (from pytorch-pretrained-bert->bert-extractive-summarize r) ERROR: Could not find a version that satisfies the requirement torch>=0.4.1 (f rom pytorch-pretrained-bert->bert-extractive-summarizer) (from versions: 0.1.2, 0.1.2.post1) ERROR: No matching distribution found for torch>=0.4.1 (from pytorch-pretrained- bert->bert-extractive-summarizer)

Is there a docker available?

dmmiller612 commented 5 years ago

After work today, I will add one. There seems to be some funky issues for some when installing the pytorch-pretrained-bert library.

RabbitJackTrade commented 5 years ago

Any news on that? I would really, like to try bert-extractive-summarizer, but I can't get it to run anywhere.

dmmiller612 commented 5 years ago

I added a dockerfile that handles the installs in master. I am writing a script now that makes it easier to dynamically use, but the docker image would allow you to run what is needed.

RabbitJackTrade commented 5 years ago

Great! I'll try that over the weekend and let you know how it went.

RabbitJackTrade commented 5 years ago

Well, somewhat bad news and very good news. The docker was built "successfully" but I couldn't run python in it - at all. An attempt to install jupyter notebooks also failed.

BUT - after completing the docker, outside it everything worked like a charm! I imported bert-extractive-summarizer, loaded the model, ran the code - all without a hitch!

Trying to explain what happened is (way) over my pay grade - but it's working now.

Thanks.