Prodigy ner.batch-train vs Spacy train

Hi @honnibal,
Thanks for the reply. Actually found this thread and was following the same steps:
Unable to use Prodigy annotations with SpaCy CLI train.

But I am getting different error.

prodigy db-out train_data_set > /tmp/test.jsonl
python -m spacy convert -t /tmp/test.jsonl -c jsonl --lang en test.jsonl .

/lib/python3.7/site-packages/spacy/cli/converters/jsonl2json.py", line 24, in ner_jsonl2json
    ents = record["spans"]
KeyError: 'spans'

I am using prodigy==1.8.3 and spacy==2.2.2.
Is this the problem with the version or the command I am using is wrong?

Thank You

1 Like