# Training on binary annotations throws error

**URL:** <https://support.prodi.gy/t/training-on-binary-annotations-throws-error/4312>\
**Category:** Uncategorized\
**Tags:** done, training\
**Created:** [June 9, 2021, 9:25pm UTC](https://support.prodi.gy/t/training-on-binary-annotations-throws-error/4312 "2021-06-09T21:25:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thalish](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/thalish/32/1642_2.png) [@thalish](https://support.prodi.gy/u/thalish)\
**Post date:** [June 9, 2021, 9:25pm UTC](https://support.prodi.gy/t/training-on-binary-annotations-throws-error/4312/1 "2021-06-09T21:25:46Z")

</div>

Problem - Trying to train a model that was annotated using ner.teach command throws up error.

Train command - prodigy ner.batch-train ner\_person\_binary en\_core\_web\_lg --output OUTPUT\_PATH --label PERSON --eval-split 0.2 --n-iter 10 --batch-size 8

ERROR -  
self.extend(nlp.remove\_pipe(name) for name in names)  
File "/opt/anaconda3/lib/python3.8/site-packages/spacy/language.py", line 415, 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']

prodigy version - '1.10.7'  
spacy version - 2.3.0

Let me know if I am missing something here.

---

<div class="post-metadata">

**Author:** ![thalish](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/thalish/32/1642_2.png) [@thalish](https://support.prodi.gy/u/thalish)\
**Post date:** [June 11, 2021, 7:09am UTC](https://support.prodi.gy/t/training-on-binary-annotations-throws-error/4312/2 "2021-06-11T07:09:23Z")

</div>

@ines Hi Ines 🙂 , could you help me out here?

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [June 14, 2021, 1:43am UTC](https://support.prodi.gy/t/training-on-binary-annotations-throws-error/4312/3 "2021-06-14T01:43:48Z")

</div>

Could you try upgrading to v1.10.8? I think we fixed an issue in the latest version that could be related to this.

---

<div class="post-metadata">

**Author:** ![thalish](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/thalish/32/1642_2.png) [@thalish](https://support.prodi.gy/u/thalish)\
**Post date:** [June 17, 2021, 5:43pm UTC](https://support.prodi.gy/t/training-on-binary-annotations-throws-error/4312/4 "2021-06-17T17:43:51Z")

</div>

Just updated it and still having some issues.

```
raise ValueError(Errors.E008.format(names=unexpected))
ValueError: [E008] Some current components would be lost when restoring previous pipeline state. If 
you added components after calling `nlp.disable_pipes()`, you should remove them explicitly with 
`nlp.remove_pipe()` before the pipeline is restored. Names of the new components: ['sentencizer']
```

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [August 12, 2021, 12:12pm UTC](https://support.prodi.gy/t/training-on-binary-annotations-throws-error/4312/5 "2021-08-12T12:12:50Z")

</div>

Just released v1.11, which removes the need for the `--binary` flag and separate annotation models during training and now also supports training from a mix of binary and manual annotations: [https://prodi.gy/docs/recipes#train](https://prodi.gy/docs/recipes#train)
