Hello. I am using the following pipeline but i had an error when i tried to use the patch-train.
First I annotated some labels and I created my baseline model.
Then I used active learning in order to create a binary dataset.
The next step was to use the following command in order to apply the batch-train using the dataset from ner.teach:
python -m prodigy ner.batch-train ner_teach_pattern_reg1 .\basemodel\ -o .\outputmodels\exp12 -es 0.2
But i have the following error:
[E001] No component 'tagger' found in pipeline. Available names: ['ner']
When i tried to search about this the only considerable answer i had was that is a version bug. So I am not able to use the batch-train in any way. I tried to use alternatives ways to write the command but still i had the same error.
prodigy version: 10.8.1
spacy version: 2.3.7
We dont prefer to move to spacy 3 because when we tried we had more bugs in other steps.
Full output error:
Traceback (most recent call last):
File "C:\Users\DimitrisValeris\anaconda3\envs\prodigy_sp2\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\DimitrisValeris\anaconda3\envs\prodigy_sp2\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\DimitrisValeris\anaconda3\envs\prodigy_sp2\lib\site-packages\prodigy_main.py", line 53, in
controller = recipe(args, use_plac=True)
File "cython_src\prodigy\core.pyx", line 321, in prodigy.core.recipe.recipe_decorator.recipe_proxy
File "C:\Users\DimitrisValeris\anaconda3\envs\prodigy_sp2\lib\site-packages\plac_core.py", line 367, in call
cmd, result = parser.consume(arglist)
File "C:\Users\DimitrisValeris\anaconda3\envs\prodigy_sp2\lib\site-packages\plac_core.py", line 232, in consume
return cmd, self.func((args + varargs + extraopts), **kwargs)
File "C:\Users\DimitrisValeris\anaconda3\envs\prodigy_sp2\lib\site-packages\prodigy\deprecated\train.py", line 142, in ner_batch_train
losses = model.batch_train(
File "cython_src\prodigy\models\ner.pyx", line 346, in prodigy.models.ner.EntityRecognizer.batch_train
File "cython_src\prodigy\models\ner.pyx", line 438, in prodigy.models.ner.EntityRecognizer._update
File "cython_src\prodigy\models\ner.pyx", line 431, in prodigy.models.ner.EntityRecognizer._update
File "C:\Users\DimitrisValeris\anaconda3\envs\prodigy_sp2\lib\site-packages\spacy\language.py", line 460, in disable_pipes
return DisabledPipes(self, *names)
File "C:\Users\DimitrisValeris\anaconda3\envs\prodigy_sp2\lib\site-packages\spacy\language.py", line 1124, in init
self.extend(nlp.remove_pipe(name) for name in names)
File "C:\Users\DimitrisValeris\anaconda3\envs\prodigy_sp2\lib\site-packages\spacy\language.py", line 1124, in
self.extend(nlp.remove_pipe(name) for name in names)
File "C:\Users\DimitrisValeris\anaconda3\envs\prodigy_sp2\lib\site-packages\spacy\language.py", line 418, in remove_pipe
raise ValueError(Errors.E001.format(name=name, opts=self.pipe_names))
ValueError: [E001] No component 'tagger' found in pipeline. Available names: ['ner']