Open Ravikiran2611 opened 5 years ago
I also counter this problem
change load_sparse_car function np.load(filename) to np.load(filename,allow_pickle=True) in utils.py
I seemed to have solved the problem by downgrading numpy to 1.16.1
It will be ok to install numpy==1.16.2
However, another problem occurs to me. While [Initializing tokenizers and document retrievers], BlockingIOError: [Errno 11] Resource temporarily unavailable was raised.
12/05/2019 10:36:27 PM: [ CUDA enabled (GPU 2) ]
12/05/2019 10:36:27 PM: [ Initializing pipeline... ]12/05/2019 10:36:27 PM: [ Initializing document ranker... ]
12/05/2019 10:36:27 PM: [ Loading /home/liangxin/codes/DrQA_mac/data/wikipedia/docs-tfidf-ngram=2-hash=16777216-tokenizer=simple.npz ]
12/05/2019 10:37:09 PM: [ Initializing document reader... ]
12/05/2019 10:37:09 PM: [ Loading model /home/liangxin/codes/DrQA_mac/data/reader/multitask.mdl ]
12/05/2019 10:37:18 PM: [ Initializing tokenizers and document retrievers... ]
Traceback (most recent call last):
File "scripts/pipeline/interactive.py", line 70, in
change load_sparse_car function np.load(filename) to np.load(filename,allow_pickle=True) in utils.py
This fixed it for me.
WHEN I RUN THE COMMAND python scirpts/pipeline/interaction.py I GET THE FOLLOWING ERROR
08/13/2019 11:49:58 AM: [ CUDA enabled (GPU 1) ] 08/13/2019 11:49:58 AM: [ Initializing pipeline... ] 08/13/2019 11:49:58 AM: [ Initializing document ranker... ] 08/13/2019 11:49:58 AM: [ Loading /home/zlabs-nlp/ravi/DrQA/data/wikipedia/docs-tfidf-ngram=2-hash=16777216-tokenizer=simple.npz ] Traceback (most recent call last): File "scripts/pipeline/interactive.py", line 70, in
tokenizer=args.tokenizer
File "/home/zlabs-nlp/ravi/DrQA/drqa/pipeline/drqa.py", line 109, in init
self.ranker = ranker_class(**ranker_opts)
File "/home/zlabs-nlp/ravi/DrQA/drqa/retriever/tfidf_doc_ranker.py", line 37, in init
matrix, metadata = utils.load_sparse_csr(tfidf_path)
File "/home/zlabs-nlp/ravi/DrQA/drqa/retriever/utils.py", line 36, in load_sparse_csr
return matrix, loader['metadata'].item(0) if 'metadata' in loader else None
File "/home/zlabs-nlp/miniconda3/envs/drqa/lib/python3.6/_collections_abc.py", line 666, in contains
self[key]
File "/home/zlabs-nlp/miniconda3/envs/drqa/lib/python3.6/site-packages/numpy/lib/npyio.py", line 262, in getitem
pickle_kwargs=self.pickle_kwargs)
File "/home/zlabs-nlp/miniconda3/envs/drqa/lib/python3.6/site-packages/numpy/lib/format.py", line 696, in read_array
raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False
CAN ANYONE HELP ME WHAT THE ERROR IS THANKS IN ADVANCE!!!!!!!