Closed amartyahatua closed 3 years ago
Numpy has changed the interface for load_sparse_csr recently which breaks DrQA.
I've just updated the dependencies to fever-drqa which should fix that.
git pull
pip install --upgrade -r requirements.txt
should fix
Hello James,
Thanks for your reply. I am unable to clone the repository.
Amartya
On Fri, Oct 30, 2020 at 9:33 AM James Thorne notifications@github.com wrote:
Numpy has changed the interface for load_sparse_csr recently which breaks DrQA.
I've just updated the dependencies to fever-drqa which should fix that.
git pull pip install --upgrade -r requirements.txt
should fix
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sheffieldnlp/fever-naacl-2018/issues/55#issuecomment-719587920, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCUZFBDMB4QYWAIJC2I5D3SNLFEDANCNFSM4TFBHMUA .
While executing the Data preparation step using the below-mentioned command, I got the following error:
PYTHONPATH=src python src/scripts/retrieval/document/batch_ir_ns.py --model data/index/fever-tfidf-ngram=2-hash=16777216-tokenizer=simple.npz --count 1 --split train
File "src/scripts/retrieval/document/batch_ir_ns.py", line 24, in
ranker = retriever.get_class('tfidf')(tfidf_path=args.model)
File "/home/ahatua/anaconda3/envs/fever/lib/python3.6/site-packages/drqa/retriever/tfidf_doc_ranker.py", line 39, in init
matrix, metadata = utils.load_sparse_csr(tfidf_path)
File "/home/ahatua/anaconda3/envs/fever/lib/python3.6/site-packages/drqa/retriever/utils.py", line 36, in load_sparse_csr
return matrix, loader['metadata'].item(0) if 'metadata' in loader else None
File "/home/ahatua/anaconda3/envs/fever/lib/python3.6/_collections_abc.py", line 666, in contains
self[key]
File "/home/ahatua/anaconda3/envs/fever/lib/python3.6/site-packages/numpy/lib/npyio.py", line 255, in getitem
pickle_kwargs=self.pickle_kwargs)
File "/home/ahatua/anaconda3/envs/fever/lib/python3.6/site-packages/numpy/lib/format.py", line 727, in read_array
raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False