I am trying to leverage the ner recipe and transformed the data to desired prodigy format. But I encountered following error msg when running ner.teach
Task queue depth is 1
Exception when serving /get_session_questions
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/waitress/channel.py", line 336, in service
task.service()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/waitress/task.py", line 175, in service
self.execute()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/waitress/task.py", line 452, in execute
app_iter = self.channel.server.application(env, start_response)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/hug/api.py", line 451, in api_auto_instantiate
return module.__hug_wsgi__(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/falcon/api.py", line 244, in __call__
responder(req, resp, **params)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/hug/interface.py", line 789, in __call__
raise exception
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/hug/interface.py", line 762, in __call__
self.render_content(self.call_function(input_parameters), context, request, response, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/hug/interface.py", line 698, in call_function
return self.interface(**parameters)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/hug/interface.py", line 100, in __call__
return __hug_internal_self._function(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/prodigy/_api/hug_app.py", line 228, in get_session_questions
tasks = controller.get_questions(session_id=session_id)
File "cython_src/prodigy/core.pyx", line 130, in prodigy.core.Controller.get_questions
File "cython_src/prodigy/components/feeds.pyx", line 58, in prodigy.components.feeds.SharedFeed.get_questions
File "cython_src/prodigy/components/feeds.pyx", line 63, in prodigy.components.feeds.SharedFeed.get_next_batch
File "cython_src/prodigy/components/feeds.pyx", line 140, in prodigy.components.feeds.SessionFeed.get_session_stream
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/toolz/itertoolz.py", line 368, in first
return next(iter(seq))
File "cython_src/prodigy/components/sorters.pyx", line 151, in __iter__
File "cython_src/prodigy/components/sorters.pyx", line 61, in genexpr
File "cython_src/prodigy/models/ner.pyx", line 292, in __call__
File "cython_src/prodigy/models/ner.pyx", line 261, in get_tasks
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/toolz/itertoolz.py", line 716, in partition_all
prev = next(it)
File "cython_src/prodigy/models/ner.pyx", line 211, in predict_spans
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/toolz/itertoolz.py", line 716, in partition_all
prev = next(it)
File "cython_src/prodigy/components/preprocess.pyx", line 39, in split_sentences
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spacy/language.py", line 688, in pipe
for doc, context in izip(docs, contexts):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spacy/language.py", line 716, in pipe
for doc in docs:
File "nn_parser.pyx", line 221, in pipe
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spacy/util.py", line 457, in minibatch
batch = list(itertools.islice(items, int(batch_size)))
File "nn_parser.pyx", line 221, in pipe
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spacy/util.py", line 457, in minibatch
batch = list(itertools.islice(items, int(batch_size)))
File "pipes.pyx", line 379, in pipe
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spacy/util.py", line 457, in minibatch
batch = list(itertools.islice(items, int(batch_size)))
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spacy/language.py", line 903, in _pipe
for doc in docs:
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spacy/language.py", line 691, in <genexpr>
docs = (self.make_doc(text) for text in texts)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spacy/language.py", line 680, in <genexpr>
texts = (tc[0] for tc in text_context1)
File "cython_src/prodigy/components/preprocess.pyx", line 38, in genexpr
File "cython_src/prodigy/components/filters.pyx", line 35, in filter_duplicates
File "cython_src/prodigy/components/filters.pyx", line 16, in filter_empty
File "cython_src/prodigy/components/loaders.pyx", line 22, in _rehash_stream
File "cython_src/prodigy/components/loaders.pyx", line 163, in JSON
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/srsly/_json_api.py", line 37, in json_loads
return ujson.loads(data)
ValueError: Trailing data
Is this something wrong with the data I imported?