deeppavlov / question_generation

It is a question-generator model. It takes text and an answer as input and outputs a question.
GNU General Public License v3.0
172 stars 59 forks source link

Code is stuck #8

Open karam86 opened 6 years ago

karam86 commented 6 years ago

I installed all the required libraries. When I run ./setup, it gets stuck after some time and remain stuck for at least 8 hours.

Here is the output:

data/model.t7: OK ----------------Installing python requirements---------------- Collecting pycorenlp==0.3.0 (from -r requirements.txt (line 1)) Collecting pyzmq==16.0.2 (from -r requirements.txt (line 2)) Using cached pyzmq-16.0.2-cp35-cp35m-manylinux1_x86_64.whl Collecting requests (from pycorenlp==0.3.0->-r requirements.txt (line 1)) Using cached requests-2.18.4-py2.py3-none-any.whl Collecting chardet<3.1.0,>=3.0.2 (from requests->pycorenlp==0.3.0->-r requirements.txt (line 1)) Using cached chardet-3.0.4-py2.py3-none-any.whl Collecting idna<2.7,>=2.5 (from requests->pycorenlp==0.3.0->-r requirements.txt (line 1)) Using cached idna-2.6-py2.py3-none-any.whl Collecting urllib3<1.23,>=1.21.1 (from requests->pycorenlp==0.3.0->-r requirements.txt (line 1)) Using cached urllib3-1.22-py2.py3-none-any.whl Collecting certifi>=2017.4.17 (from requests->pycorenlp==0.3.0->-r requirements.txt (line 1)) Using cached certifi-2018.1.18-py2.py3-none-any.whl Installing collected packages: chardet, idna, urllib3, certifi, requests, pycorenlp, pyzmq Successfully installed certifi-2018.1.18 chardet-3.0.4 idna-2.6 pycorenlp-0.3.0 pyzmq-16.0.2 requests-2.18.4 urllib3-1.22 You are using pip version 8.1.1, however version 9.0.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. ----------------Pulling corenlp and opennmt docker images---------------- 3.6.0: Pulling from sld3/corenlp Digest: sha256:9cdd0d21326868cfcaaaed6e2d1db2507c059c9634378a99df7fd3e0317cb490 Status: Image is up to date for sld3/corenlp:3.6.0 latest: Pulling from sld3/opennmt Digest: sha256:af916e064bd1e2414f8e3eb7608475e692abdde8265111a7736a88dacf8f1410 Status: Image is up to date for sld3/opennmt:latest ----------------Running corenlp and opennmt servers---------------- 506572c0a313494f01a96970cd94086e8203a9f9e9b7e82ad26e8a0ba2a9acc3 8b8a841f687bb8e460a85f1f22ed9ae40c6fb0f36b66698bf7ba196b79f7d04e ----------------Test output---------------- Waiting had its world premiere at the Dubai International Film Festival on 11 December 2015 to positive reviews from critics. It was also screened at the closing gala of the London Asian Film Festival, where Menon won the Best Director Award. [{'src': 'waiting│O│UP│VBG│O had│O│LOW│VBD│O its│O│LOW│PRP$│O world│O│LOW│NN│O premiere│O│LOW│NN│O at│O│LOW│IN│O the│O│LOW│DT│O dubai│O│UP│NNP│O international│O│UP│NNP│O film│O│UP│NNP│O festival│O│UP│NNP│O on│O│LOW│IN│O 11│B│LOW│CD│DATE december│I│UP│NNP│DATE 2015│I│LOW│CD│DATE to│O│LOW│TO│O positive│O│LOW│JJ│O reviews│O│LOW│NNS│O from│O│LOW│IN│O critics│O│LOW│NNS│O .│O│LOW│.│O\n'}, {'src': 'it│O│UP│PRP│O was│O│LOW│VBD│O also│O│LOW│RB│O screened│O│LOW│VBN│O at│O│LOW│IN│O the│O│LOW│DT│O closing│O│LOW│NN│O gala│O│LOW│NN│O of│O│LOW│IN│O the│O│LOW│DT│O london│O│UP│NNP│O asian│O│UP│NNP│O film│O│UP│NNP│O festival│O│UP│NNP│O ,│O│LOW│,│O where│O│LOW│WRB│O menon│B│UP│NNP│PERSON won│O│LOW│VBD│O the│O│LOW│DT│O best│O│UP│JJS│O director│O│UP│NN│O award│O│UP│NN│O .│O│LOW│.│O\n'}]

WangJiexin commented 6 years ago

Hello, I also have the same problem. And have you already solved it?

charklewis commented 5 years ago

I also ran into the same issue. I think there is an error with the "Running corenlp and opennmt servers" part of the setup script

SundeepPidugu commented 5 years ago

@WangJiexin @charklewis running process trying to stop and remove the corenlp and opennmt docker instances, just can simply stop it and run this piece of code ./get_qnas "<text>" It works just fine for me !