Closed daniildiveev closed 3 years ago
So, I ve been trying to start your demo in my google colab, but when it comes to testing, i get an timeout error.
timeout
These are my commands in order i execute them in colab:
!git clone https://github.com/facebookresearch/DrQA.git cd DrQA/ !pip install -r requirements.txt !python setup.py develop import drqa.tokenizers drqa.tokenizers.set_default('corenlp_classpath', '/your/corenlp/classpath/*') !export CLASSPATH=$CLASSPATH:/path/to/corenlp/download/* !./install_corenlp.sh !export CLASSPATH=$CLASSPATH:data/corenlp/* !pip install torch==1.0.0
And this is the code that cannot be execurted due to timeout error:
from drqa.tokenizers import CoreNLPTokenizer tok = CoreNLPTokenizer() tok.tokenize('hello world').words() # Should complete immediately
This is what i get when i try to run it:
--------------------------------------------------------------------------- TIMEOUT Traceback (most recent call last) <ipython-input-13-215e47ffcb9a> in <module>() 1 from drqa.tokenizers import CoreNLPTokenizer ----> 2 tok = CoreNLPTokenizer() 3 tok.tokenize('hello world').words() # Should complete immediately 4 frames /usr/local/lib/python3.7/dist-packages/pexpect/expect.py in timeout(self, err) 142 continue 143 if s is TIMEOUT: --> 144 self.timeout_index = n 145 continue 146 self._strings.append((n, s)) TIMEOUT: Timeout exceeded. <pexpect.pty_spawn.spawn object at 0x7ff21a36ca90> command: /bin/bash args: ['/bin/bash'] buffer (last 100 chars): b'lang.ClassNotFoundException: edu.stanford.nlp.pipeline.StanfordCoreNLP\r\n\x1b[01;34m/content/DrQA\x1b[00m# ' before (last 100 chars): b'lang.ClassNotFoundException: edu.stanford.nlp.pipeline.StanfordCoreNLP\r\n\x1b[01;34m/content/DrQA\x1b[00m# ' after: <class 'pexpect.exceptions.TIMEOUT'> match: None match_index: None exitstatus: None flag_eof: False pid: 402 child_fd: 77 closed: False timeout: 60 delimiter: <class 'pexpect.exceptions.EOF'> logfile: None logfile_read: None logfile_send: None maxread: 100000 ignorecase: False searchwindowsize: None delaybeforesend: 0 delayafterclose: 0.1 delayafterterminate: 0.1 searcher: searcher_string: 0: b'NLP>'
I did everything depending on your README file(installation part), but it seems like i did something wrong, please explain what is my problem.
So, I ve been trying to start your demo in my google colab, but when it comes to testing, i get an
timeout
error.These are my commands in order i execute them in colab:
And this is the code that cannot be execurted due to timeout error:
This is what i get when i try to run it:
I did everything depending on your README file(installation part), but it seems like i did something wrong, please explain what is my problem.