# Possible bug in nightly ner.correct

**URL:** <https://support.prodi.gy/t/possible-bug-in-nightly-ner-correct/4453>\
**Category:** Uncategorized\
**Tags:** usage, nightly, done\
**Created:** [July 18, 2021, 7:36pm UTC](https://support.prodi.gy/t/possible-bug-in-nightly-ner-correct/4453 "2021-07-18T19:36:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsr2021](https://avatars.discourse-cdn.com/v4/letter/d/dec6dc/32.png) [@dsr2021](https://support.prodi.gy/u/dsr2021)\
**Post date:** [July 18, 2021, 7:36pm UTC](https://support.prodi.gy/t/possible-bug-in-nightly-ner-correct/4453/1 "2021-07-18T19:36:01Z")

</div>

I got an error with a stacktrace when trying to save annotations for a new dataset. The last few lines are

File "C:\NLP\venv\lib\site-packages\prodigy\recipes\ner.py", line 266, in   
doc.char\_span(span["start"], span["end"], label=span[label])  
TypeError: unhashable type: 'list'

The UI has a popup:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/5/592c6fc5f5fdaace1fae50470250c02efbb58777.png)

When I killed the process, I did get the message  
✔ Saved 8 annotations to database SQLite

However, when I tried a db-out for the dataset, no file was created, and the message said there were no annotations.

The error message was not helpful. I think the error was because I had the --update flag on. Removing it seemed to resolve the error. Shouldn't the dataset be created if it didn't exist?

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [July 19, 2021, 12:56am UTC](https://support.prodi.gy/t/possible-bug-in-nightly-ner-correct/4453/2 "2021-07-19T00:56:29Z")

</div>

Thanks for the report! It looks like this should be `label=span["label"]` instead. I've already fixed this for the next release. In the meantime, you can also add this in yourself by editing the line in `recipes/ner.py` (you can run `prodigy stats` to find the location of your Prodigy installation).

**Edit:** Just released a new nightly that fixes the problem:

> [@sparkles Prodigy nightly: spaCy v3 support, UI for overlapping spans & more](https://support.prodi.gy/t/prodigy-nightly-spacy-v3-support-ui-for-overlapping-spans-more/3861/85):
>
> Just released a new nightly v1.11.0a10 that includes the following updates: improved support for updating from binary annotations, especially those created with ner.teach ner.teach will now also ask about texts with no entities – so if a suggestion doesn't include any suggestions, you can accept it if it has no entities and reject it if it does contain entities of the given label(s) support for providing --spancat datasets for training spaCy v3.1's new SpanCategorizer in spacy train (with au…
