Closed maheshmad closed 4 years ago
Seems like an error caused by spacy trying to process the passage text. Make sure the file you're trying to do prediction on a json-lines formatted file, were each line is a json object with the keys -- "question" and "passage". Could you please post the file or a snippet of it here?
updated the original comment with the jsonl data.
Runs fine on my machine. Could you verify that spacy is installed properly. I am using version 2.1.8
, though it shouldn't really matter. Did you try running the command python -m spacy validate
as suggested in the error log.
@nitishgupta thanks for looking.... i had to update the en-core-web-lg to latest....and that fixed it.
====================== Installed models (spaCy v2.2.3) ======================
ℹ spaCy installation:
/root/anaconda3/envs/py3/lib/python3.6/site-packages/spacy
TYPE NAME MODEL VERSION
package en-core-web-lg en_core_web_lg 2.1.0 --> 2.2.5
============================== Install updates==============================
python -m spacy download en_core_web_lg
Great. Usually reading through the error log helps!
Followed the steps in setting the project, but I get the below error while trying to run a prediction.
Any hint?
The file looks like this