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:
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?