@ines I tried changing the labels to UPPERCASE. This is the steps I have done.
prodigy db-in testone /home/user/sample.jsonl
#In the above command, ‘testone’ is the one with annotations and sample.jsonl is the data I need to annotate
prodigy ner.batch-train testone en_core_web_sm --output /home/user --no-missing #Again 'testone' here
prodigy ner.teach sampletwo /home/user --label LABELONE,LABELTWO #'sampletwo' is the new data
Using 2 labels: LABELONE,LABELTWO
Although I get the above message 'using 2 labels…" It does not load anything after that for so long, Once I hit enter, I get the below error.
Traceback (most recent call last):
File "cython_src/prodigy/components/loaders.pyx", line 117, in prodigy.components.loaders.JSONL
ValueError: Expected object or value
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/anaconda/envs/documentparsing/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/opt/anaconda/envs/documentparsing/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/anaconda/envs/documentparsing/lib/python3.6/site-packages/prodigy/__main__.py", line 259, in <module>
controller = recipe(*args, use_plac=True)
File "cython_src/prodigy/core.pyx", line 178, in prodigy.core.recipe.recipe_decorator.recipe_proxy
File "cython_src/prodigy/core.pyx", line 55, in prodigy.core.Controller.__init__
File "/opt/anaconda/envs/documentparsing/lib/python3.6/site-packages/toolz/itertoolz.py", line 368, in first
return next(iter(seq))
File "cython_src/prodigy/core.pyx", line 84, in iter_tasks
File "cython_src/prodigy/components/sorters.pyx", line 136, in __iter__
File "cython_src/prodigy/components/sorters.pyx", line 51, in genexpr
File "cython_src/prodigy/models/ner.pyx", line 265, in __call__
File "cython_src/prodigy/models/ner.pyx", line 233, in get_tasks
File "cytoolz/itertoolz.pyx", line 1047, in cytoolz.itertoolz.partition_all.__next__
File "cython_src/prodigy/models/ner.pyx", line 192, in predict_spans
File "cytoolz/itertoolz.pyx", line 1047, in cytoolz.itertoolz.partition_all.__next__
File "cython_src/prodigy/components/preprocess.pyx", line 36, in split_sentences
File "/opt/anaconda/envs/documentparsing/lib/python3.6/site-packages/spacy/language.py", line 548, in pipe
for doc, context in izip(docs, contexts):
File "/opt/anaconda/envs/documentparsing/lib/python3.6/site-packages/spacy/language.py", line 572, in pipe
for doc in docs:
File "nn_parser.pyx", line 367, in pipe
File "cytoolz/itertoolz.pyx", line 1047, in cytoolz.itertoolz.partition_all.__next__
File "nn_parser.pyx", line 367, in pipe
File "cytoolz/itertoolz.pyx", line 1047, in cytoolz.itertoolz.partition_all.__next__
File "pipeline.pyx", line 431, in pipe
File "cytoolz/itertoolz.pyx", line 1047, in cytoolz.itertoolz.partition_all.__next__
File "/opt/anaconda/envs/documentparsing/lib/python3.6/site-packages/spacy/language.py", line 746, in _pipe
for doc in docs:
File "/opt/anaconda/envs/documentparsing/lib/python3.6/site-packages/spacy/language.py", line 551, in <genexpr>
docs = (self.make_doc(text) for text in texts)
File "/opt/anaconda/envs/documentparsing/lib/python3.6/site-packages/spacy/language.py", line 544, in <genexpr>
texts = (tc[0] for tc in text_context1)
File "cython_src/prodigy/components/preprocess.pyx", line 35, 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 125, in JSONL
ValueError: Failed to load task (invalid JSON).
...