I’m getting an error when I shut down the server after running ner.mark. It looks like the server saved the raw annotations, but not the spans that go with them.
$ prodigy ner.mark names_ner en_core_web_lg names_ner_reject.jsonl --label PERSON
Storing raw annotations in dataset 'names_ner_raw' and spans in 'names_ner'
✨ Starting the web server at http://localhost:8080 ...
Open the app in your browser and start annotating!
^C
Saved 23 annotations to database SQLite
Dataset: names_ner_raw
Session ID: 2017-12-29_17-40-23
Traceback (most recent call last):
File "/home/wff/miniconda3/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/wff/miniconda3/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/wff/miniconda3/lib/python3.6/site-packages/prodigy/__main__.py", line 244, in <module>
server(controller, controller.config)
File "/home/wff/miniconda3/lib/python3.6/site-packages/prodigy/app.py", line 40, in server
controller.save()
File "cython_src/prodigy/core.pyx", line 119, in prodigy.core.Controller.save
File "/home/wff/miniconda3/lib/python3.6/site-packages/prodigy/recipes/ner.py", line 179, in on_exit
end = eg['spans'][accept[-1]]['end']
IndexError: list index out of range
This is in prodigy 1.1.0.