I’ve annotated a number of examples (using a mix of ner.teach
and ner.manual
) in different datasets, and now need to merge them all together to create one dataset that I can train a model on.
When running pgy db-merge dataset1,dataset2 out_dataset
, I get the following error:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/alex/.local/share/virtualenvs/prodigy-MEGM_AZG/lib/python3.7/site-packages/prodigy/__main__.py", line 372, in <module>
plac.call(commands[command], arglist=args, eager=False)
File "/Users/alex/.local/share/virtualenvs/prodigy-MEGM_AZG/lib/python3.7/site-packages/plac_core.py", line 328, in call
cmd, result = parser.consume(arglist)
File "/Users/alex/.local/share/virtualenvs/prodigy-MEGM_AZG/lib/python3.7/site-packages/plac_core.py", line 207, in consume
return cmd, self.func(*(args + varargs + extraopts), **kwargs)
File "/Users/alex/.local/share/virtualenvs/prodigy-MEGM_AZG/lib/python3.7/site-packages/prodigy/__main__.py", line 317, in db_merge
examples = DB.get_dataset(set_id)
File "/Users/alex/.local/share/virtualenvs/prodigy-MEGM_AZG/lib/python3.7/site-packages/prodigy/components/db.py", line 296, in get_dataset
return [eg.load() for eg in examples]
File "/Users/alex/.local/share/virtualenvs/prodigy-MEGM_AZG/lib/python3.7/site-packages/prodigy/components/db.py", line 296, in <listcomp>
return [eg.load() for eg in examples]
File "/Users/alex/.local/share/virtualenvs/prodigy-MEGM_AZG/lib/python3.7/site-packages/prodigy/components/db.py", line 99, in load
return srsly.json_loads(content)
File "/Users/alex/.local/share/virtualenvs/prodigy-MEGM_AZG/lib/python3.7/site-packages/srsly/_json_api.py", line 37, in json_loads
return ujson.loads(data)
ValueError: Unmatched ''"' when when decoding 'string'
Running prodigy v1.8.3.
Thanks in advance