# Prodigy ner.batch-train vs Spacy train

**URL:** <https://support.prodi.gy/t/prodigy-ner-batch-train-vs-spacy-train/1665>\
**Category:** Uncategorized\
**Tags:** usage, spacy, best-practices\
**Created:** [June 16, 2019, 6:02pm UTC](https://support.prodi.gy/t/prodigy-ner-batch-train-vs-spacy-train/1665 "2019-06-16T18:02:56Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![PuneethaPai](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/puneethapai/32/1055_2.png) [@PuneethaPai](https://support.prodi.gy/u/PuneethaPai)\
**Post date:** [November 20, 2019, 7:20am UTC](https://support.prodi.gy/t/prodigy-ner-batch-train-vs-spacy-train/1665/6 "2019-11-20T07:20:40Z")

</div>

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](https://support.prodi.gy/t/unable-to-use-prodigy-annotations-with-spacy-cli-train/2084).

But I am getting different error.

```python
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

---

_[View the full topic](https://support.prodi.gy/t/prodigy-ner-batch-train-vs-spacy-train/1665)._
