I am having a little difficulty using a Word2Vec model I created. The model creation seemed to work but when I try to use it I am getting an error I don’t really know how to address. The error is “KeyError: “[E001] No component ‘ner’ found in pipeline. Available names: [‘sbd’]””. I created the model from scratch as text I am using are english comments but they are so highly technical, abbreviated and lots of acronyms.
prodigy terms.train-vectors /Users/jdalgliesh/prodigy/model /Users/jdalgliesh/prodigy/remarks.txt
.
. All the other train-vectors output
.
.
19:20:24 - EPOCH - 2 : training on 12417098 raw words (2691458 effective words) took 131.5s, 20464 effective words/s
19:20:24 - training on a 24834196 raw words (5382544 effective words) took 261.2s, 20607 effective words/s
✨ Trained Word2Vec model
/Users/jdalgliesh/prodigy/model
(/anaconda/envs/NER) bash-3.2$ prodigy dataset boem
✨ Successfully added 'boem' to database SQLite.
(/anaconda/envs/NER) bash-3.2$ prodigy ner.teach boem /Users/jdalgliesh/prodigy/model daily_oil.json --label "Tripping, Circulating, Drilling, Cementing, Logging, Perforation, Testing, Rigging, StuckPipe, LostCirculation, Kick, Fishing, Ballooning, Waiting, casing_hole, depth" --patterns patternsActivitiesProblems.jsonl
Using 15 labels: Tripping, Circulating, Drilling, Cementing, Logging, Perforation Testing, Rigging, StuckPipe, LostCirculation, Kick, Fishing, Ballooning, Waiting, casing_hole, depth
Traceback (most recent call last):
File "/anaconda/envs/NER/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/anaconda/envs/NER/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/anaconda/envs/NER/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 "/anaconda/envs/NER/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/util.pyx", line 303, in predict
File "/anaconda/envs/NER/lib/python3.6/site-packages/toolz/itertoolz.py", line 234, in interleave
yield next(itr)
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 1046, in cytoolz.itertoolz.partition_all.__next__ (cytoolz/itertoolz.c:14538)
File "cython_src/prodigy/models/ner.pyx", line 197, in predict_spans
File "cython_src/prodigy/models/ner.pyx", line 57, in prodigy.models.ner._BatchBeam.__init__
File "/anaconda/envs/NER/lib/python3.6/site-packages/spacy/language.py", line 198, in entity
return self.get_pipe('ner')
File "/anaconda/envs/NER/lib/python3.6/site-packages/spacy/language.py", line 221, in get_pipe
raise KeyError(Errors.E001.format(name=name, opts=self.pipe_names))
KeyError: "[E001] No component 'ner' found in pipeline. Available names: ['sbd']"
(/anaconda/envs/NER) bash-3.2$