-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I have met errors during preprocessing. #1
Comments
do you solve this problem? i met same error as yours. |
Oh, i solve this problem by downgrade java version from 11 to 8 :). |
Hi @wzq016 , (my_qa3) launchship@launchship-ML:~/Downloads/question-answering$ python preprocess.py --data data/squad --embed-path wordvec/glove/glove.840B.300d.txt --restrict-vocab --num-characters 300 During handling of the above exception, another exception occurred: During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Yes, I find such problem will still occur under Java8 sometimes. |
Hi @wzq016 , NotADirectoryError: [Errno 20] Not a directory: '/home/launchship/Downloads/question-answering/logs/drqa.log' |
@mady143 this is because you need to make a directory first, i.e. |
yeah already i had logs i run the command like getting an error word, count = line.rstrip().rsplit(' ', 1) |
I don't meet such problem, so i'm not sure what is going wrong here, I only run this code on bidaf with Squad. Seems like this is because of data problem, maybe you could try printing results here to find out the error. |
I have the same issues both with bidaf and drqa, would you please check ? |
The error code like this:
Traceback (most recent call last):
File "/anaconda3/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/anaconda3/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/anaconda3/lib/python3.6/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/anaconda3/lib/python3.6/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/anaconda3/lib/python3.6/multiprocessing/pool.py", line 103, in worker
initializer(*initargs)
File "/anaconda3/lib/python3.6/multiprocessing/pool.py", line 103, in worker
initializer(*initargs)
File "preprocess.py", line 23, in init_tokenizer
TOK = CoreNLPTokenizer(annota File "preprocess.py", line 23, in init_tokenizer
TOK = CoreNLPTokenizer(annotators=annotators)
tors=annotators)
File "/Users/fzy/question-answering/reader/data/tokenizer.py", line 50, in init
self._launch()
File "/Users/fzy/question-answering/reader/data/tokenizer.py", line 73, in _launch
self.corenlp.expect_exact('NLP>', searchwindowsize=100)
File "/Users/fzy/question-answering/reader/data/tokenizer.py", line 50, in init
self._launch()
File "/anaconda3/lib/python3.6/site-packages/pexpect/spawnbase.py", line 390, in expect_exact
return exp.expect_loop(timeout)
File "/Users/fzy/question-answering/reader/data/tokenizer.py", line 73, in _launch
self.corenlp.expect_exact('NLP>', searchwindowsize=100)
File "/anaconda3/lib/python3.6/site-packages/pexpect/expect.py", line 107, in expect_loop
return self.timeout(e)
File "/anaconda3/lib/python3.6/site-packages/pexpect/spawnbase.py", line 390, in expect_exact
return exp.expect_loop(timeout)
File "/anaconda3/lib/python3.6/site-packages/pexpect/expect.py", line 70, in timeout
raise TIMEOUT(msg)
Traceback (most recent call last):
File "/anaconda3/lib/python3.6/site-packages/pexpect/expect.py", line 107, in expect_loop
return self.timeout(e)
File "/anaconda3/lib/python3.6/site-packages/pexpect/expect.py", line 70, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: Timeout exceeded.
How could I debug them? Thanks in advance!
The text was updated successfully, but these errors were encountered: