# ner.teach with a model made using span.manual

**URL:** <https://support.prodi.gy/t/ner-teach-with-a-model-made-using-span-manual/4929>\
**Category:** Uncategorized\
**Tags:** usage, ner, solved, spancat\
**Created:** [November 11, 2021, 10:21am UTC](https://support.prodi.gy/t/ner-teach-with-a-model-made-using-span-manual/4929 "2021-11-11T10:21:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hmousa961](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/hmousa961/32/2181_2.png) [@hmousa961](https://support.prodi.gy/u/hmousa961)\
**Post date:** [November 11, 2021, 10:21am UTC](https://support.prodi.gy/t/ner-teach-with-a-model-made-using-span-manual/4929/1 "2021-11-11T10:21:03Z")

</div>

Hi,  
Does ner.teach recipe work with a model made with span categorizer (spans.manual)? If not is there any way, to teach my model in order to enhance the prediction accuracy?

Thanks.

---

<div class="post-metadata">

**Author:** ![ljvmiranda921](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ljvmiranda921/32/3197_2.png) [@ljvmiranda921](https://support.prodi.gy/u/ljvmiranda921)\
**Post date:** [November 15, 2021, 1:03am UTC](https://support.prodi.gy/t/ner-teach-with-a-model-made-using-span-manual/4929/2 "2021-11-15T01:03:57Z")

</div>

Hi @hmousa961 !

> [@hmousa961](#):
>
> Does ner.teach recipe work with a model made with span categorizer (spans.manual)?

It won't work out-of-the-box because the `ner.teach` recipe is optimized for the entity recognizer which predicts non-overlapping spans in the `doc.ents`.

> [@hmousa961](#):
>
> If not is there any way, to teach my model in order to enhance the prediction accuracy?

If you want to improve prediction accuracy, I suggest using [`spans.correct`](https://prodi.gy/docs/recipes#spans-correct). You can also pass the `--update` parameter if you want to annotate with a model in the loop.

---

<div class="post-metadata">

**Author:** ![hmousa961](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/hmousa961/32/2181_2.png) [@hmousa961](https://support.prodi.gy/u/hmousa961)\
**Post date:** [November 15, 2021, 7:37am UTC](https://support.prodi.gy/t/ner-teach-with-a-model-made-using-span-manual/4929/3 "2021-11-15T07:37:58Z")

</div>

Thank you so much for your reply. I will try the spans.correct with passing the --update.
