# How textcat.teach works under the hood

**URL:** <https://support.prodi.gy/t/how-textcat-teach-works-under-the-hood/7508>\
**Category:** Uncategorized\
**Tags:** usage, textcat\
**Created:** [February 18, 2025, 4:59pm UTC](https://support.prodi.gy/t/how-textcat-teach-works-under-the-hood/7508 "2025-02-18T16:59:40Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![magdaaniol](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/magdaaniol/32/2787_2.png) [@magdaaniol](https://support.prodi.gy/u/magdaaniol)\
**Post date:** [March 20, 2025, 11:32am UTC](https://support.prodi.gy/t/how-textcat-teach-works-under-the-hood/7508/13 "2025-03-20T11:32:23Z")

</div>

Great! Thanks for sharing the cause of the problem!

> In this case, does accepting mean that we are going to put this example in the new training set? If so would we have to go in after textcat.teach and assign the correct label to it?

When you hit `accept`, you accept the example with the label, so there's no need to relabel it. In the case of multilabel text classification, the model gets updated with the information for this particular label only. It doesn't update anythig about the remaining labels. The remaining labels will appear in separate binary decision task for this example.

Also, I recommend this [post](https://support.prodi.gy/t/from-choice-annotations-to-binary-annotations-with-teach/1092/3) which explains a bit more about the effects of binary annotations on the dataset as well as how you can modify the selection of examples by choosing a different [sorter](https://prodi.gy/docs/api-components#sorters) (please note that this is an older post and it makes references to a deprecated `batch-train` recipe, but the general principle it describes is still valid). `prefer_uncertain` is an optimal choice for most active learning scenarios, but if you have a very high number of labels in multilabel scenario and you're seeing yourself clicking through mostly negative examples, you might be better off with collecting more positive examples at the beginning and switching to uncertainty sampling with a stronger baseline model.

If you'd like to apply a different scorer, you can modify the source code of the `textcat.teach` recipe available in your Prodigy installation path and change line 100 to:

```python
stream.apply(lambda d: prefer_high_scores(predict(d)))

```

and also the import on line 22:

```python
from ..components.sorters import prefer_uncertain, prefer_high_scores

```

---

_[View the full topic](https://support.prodi.gy/t/how-textcat-teach-works-under-the-hood/7508)._
