If I've said it once, I've said it a million times: you all are saints.
Here's a script to repro:
test.sh
DATASET_NAME="$1"
DATASET_DESCRIPTION="$2"
echo '{"text": "foo"}\n' > out.jsonl
prodigy dataset "$DATASET_NAME" "$DATASET_DESCRIPTION"
prodigy ner.teach "$DATASET_NAME" en_core_web_lg out.jsonl
I ran it with ./test.sh test 'Some dumb test'
-- this will give you the full stacktrace:
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"__main__", mod_spec)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/erippeth/.virtualenvs/nlp/lib/python3.5/site-packages/prodigy/__main__.py", line 238, in <module>
controller = recipe(*args, use_plac=True)
File "cython_src/prodigy/core.pyx", line 130, in prodigy.core.recipe.recipe_decorator.recipe_proxy
File "/Users/erippeth/.virtualenvs/nlp/lib/python3.5/site-packages/plac_core.py", line 328, in call
cmd, result = parser.consume(arglist)
File "/Users/erippeth/.virtualenvs/nlp/lib/python3.5/site-packages/plac_core.py", line 207, in consume
return cmd, self.func(*(args + varargs + extraopts), **kwargs)
File "/Users/erippeth/.virtualenvs/nlp/lib/python3.5/site-packages/prodigy/recipes/ner.py", line 54, in teach
model = EntityRecognizer(spacy.load(spacy_model), label=label)
File "cython_src/prodigy/models/ner.pyx", line 139, in prodigy.models.ner.EntityRecognizer.__init__
File "/Users/erippeth/.virtualenvs/nlp/lib/python3.5/copy.py", line 182, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/Users/erippeth/.virtualenvs/nlp/lib/python3.5/copy.py", line 297, in _reconstruct
state = deepcopy(state, memo)
File "/Users/erippeth/.virtualenvs/nlp/lib/python3.5/copy.py", line 155, in deepcopy
y = copier(x, memo)
File "/Users/erippeth/.virtualenvs/nlp/lib/python3.5/copy.py", line 243, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/Users/erippeth/.virtualenvs/nlp/lib/python3.5/copy.py", line 155, in deepcopy
y = copier(x, memo)
File "/Users/erippeth/.virtualenvs/nlp/lib/python3.5/copy.py", line 218, in _deepcopy_list
y.append(deepcopy(a, memo))
File "/Users/erippeth/.virtualenvs/nlp/lib/python3.5/copy.py", line 155, in deepcopy
y = copier(x, memo)
File "/Users/erippeth/.virtualenvs/nlp/lib/python3.5/copy.py", line 223, in _deepcopy_tuple
y = [deepcopy(a, memo) for a in x]
File "/Users/erippeth/.virtualenvs/nlp/lib/python3.5/copy.py", line 223, in <listcomp>
y = [deepcopy(a, memo) for a in x]
File "/Users/erippeth/.virtualenvs/nlp/lib/python3.5/copy.py", line 182, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/Users/erippeth/.virtualenvs/nlp/lib/python3.5/copy.py", line 292, in _reconstruct
y = callable(*args)
File "nn_parser.pyx", line 315, in spacy.syntax.nn_parser.Parser.__init__
AttributeError: 'NoneType' object has no attribute 'data'