Hello, any ideas on why this is failing, I've prepared data in jsonl and am trying to run this:
prodigy ner.manual ${DATA_SET_NAME} ${MODEL} ./${DATA_FILE} --label ${LABELS} --patterns ${PATTERNS_FILE}
Using . ./prodigy_env.sh to store parameters such as:
MODEL=blank:en
LABELS=label1,label2,label3
DATA_SET_NAME=model_name
Let me know if you need any more info and appreciate any advice thank you!
Traceback (most recent call last):
File "/opt/conda/envs/prodigy/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/conda/envs/prodigy/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/opt/conda/envs/prodigy/lib/python3.9/site-packages/prodigy/__main__.py", line 61, in <module>
controller = recipe(*args, use_plac=True)
File "cython_src/prodigy/core.pyx", line 374, in prodigy.core.recipe.recipe_decorator.recipe_proxy
File "cython_src/prodigy/core.pyx", line 63, in prodigy.core.Controller.from_components
File "cython_src/prodigy/core.pyx", line 160, in prodigy.core.Controller.__init__
File "cython_src/prodigy/components/feeds.pyx", line 104, in prodigy.components.feeds.Feed.__init__
File "cython_src/prodigy/components/feeds.pyx", line 150, in prodigy.components.feeds.Feed._init_stream
File "cython_src/prodigy/components/stream.pyx", line 107, in prodigy.components.stream.Stream.__init__
File "cython_src/prodigy/components/stream.pyx", line 58, in prodigy.components.stream.validate_stream
File "cython_src/prodigy/components/preprocess.pyx", line 164, in add_tokens
File "/opt/conda/envs/prodigy/lib/python3.9/site-packages/spacy/language.py", line 1539, in pipe
for doc in docs:
File "/opt/conda/envs/prodigy/lib/python3.9/site-packages/spacy/language.py", line 1583, in pipe
for doc in docs:
File "/opt/conda/envs/prodigy/lib/python3.9/site-packages/spacy/language.py", line 1580, in <genexpr>
docs = (self._ensure_doc(text) for text in texts)
File "/opt/conda/envs/prodigy/lib/python3.9/site-packages/spacy/language.py", line 1529, in <genexpr>
docs_with_contexts = (
File "cython_src/prodigy/components/preprocess.pyx", line 157, in genexpr
File "/opt/conda/envs/prodigy/lib/python3.9/site-packages/prodigy/recipes/ner.py", line 166, in <genexpr>
stream = (eg for _, eg in pattern_matcher(stream))
File "cython_src/prodigy/models/matcher.pyx", line 235, in __call__
TypeError: 'str' object does not support item assignment