while running the prodigy command ner.teach on a blank model the following error came up.
/usr/local/conda3/lib/python3.6/site-packages/toolz/itertoolz.py:368: RuntimeWarning: Mean of empty slice.
return next(iter(seq))
/usr/local/conda3/lib/python3.6/site-packages/numpy/core/_methods.py:85: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
/usr/local/conda3/lib/python3.6/site-packages/toolz/itertoolz.py:368: RuntimeWarning: Degrees of freedom <= 0 for slice
return next(iter(seq))
/usr/local/conda3/lib/python3.6/site-packages/numpy/core/_methods.py:110: RuntimeWarning: invalid value encountered in true_divide
arrmean, rcount, out=arrmean, casting='unsafe', subok=False)
/usr/local/conda3/lib/python3.6/site-packages/numpy/core/_methods.py:132: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
Traceback (most recent call last):
File "cython_src/prodigy/core.pyx", line 55, in prodigy.core.Controller.__init__
File "/usr/local/conda3/lib/python3.6/site-packages/toolz/itertoolz.py", line 368, in first
return next(iter(seq))
StopIteration
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "cython_src/prodigy/core.pyx", line 178, in prodigy.core.recipe.recipe_decorator.recipe_proxy
File "cython_src/prodigy/core.pyx", line 60, in prodigy.core.Controller.__init__
ValueError: Error while validating stream: no first batch. This likely means that your stream is empty.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/conda3/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/conda3/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/conda3/lib/python3.6/site-packages/prodigy/__main__.py", line 259, in <module>
controller = recipe(*args, use_plac=True)
SystemError: <built-in function delete_Tagger> returned a result with an error setPreformatted text
we have created blank japanese model with mecab.
import spacy
nlp = spacy.blank('ja')
nlp.to_disk(path/to/model)
prodigy command used:
prodigy ner.teach new_dataset japanese_blank_model path/to/train/file
Can you help us through this?