# \--exclude in textcat teach is not working as expected.

**URL:** <https://support.prodi.gy/t/exclude-in-textcat-teach-is-not-working-as-expected/3744>\
**Category:** Uncategorized\
**Tags:** textcat, more-info-needed\
**Created:** [December 15, 2020, 10:38am UTC](https://support.prodi.gy/t/exclude-in-textcat-teach-is-not-working-as-expected/3744 "2020-12-15T10:38:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdixosnd](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/jdixosnd/32/1800_2.png) [@jdixosnd](https://support.prodi.gy/u/jdixosnd)\
**Post date:** [December 15, 2020, 10:38am UTC](https://support.prodi.gy/t/exclude-in-textcat-teach-is-not-working-as-expected/3744/1 "2020-12-15T10:38:40Z")

</div>

I have one dataset which is partially annotated. (700 of 1000 were already annotated)  
I wanted to resume the annotation thus, I tried to use the --exclude parameter on the same dataset but oddly it is not working and I am still getting some tuples that I had already annotated.

I tried to reproduce the same and created a sample dataset of 4 dummy rows.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/6/657ec34381666b0372b9273c7c4c7173d7c39498.png)  
Please dont mind the content of this file.  
I started the annotation with prodigy teach command,  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/2/23c5430b5bb3a820c87119081ec7e838d8e2c8b3.png)

Annotated two of those tuples, saved the results, and terminated the execution.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/0/0ace191a7d3538890bc04bdffd51b722a4fb518b.png)

later I restarted the labeling with the "teach" method using the same method and the tool again asked me to label already annotated data and now I have annotated a total of 6 tuples.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/0/00877c1ddd151b57bdcb3274b94deacf18771ab2.png)

Am I missing anything here? I went through another topic that suggested the use of --exclude for the same reason.  
Please help.

---

<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:** [December 15, 2020, 10:47am UTC](https://support.prodi.gy/t/exclude-in-textcat-teach-is-not-working-as-expected/3744/2 "2020-12-15T10:47:14Z")

</div>

Hi! The annotations in the current dataset are excluded by default, so you shouldn't have to use `--exclude` with the name of the current dataset. By default, `textcat.teach` will skip all examples that were already annotated in the same dataset with the same label – so you may see a text again, but with a different suggestion.

If you're seeing the exact same examples again, can you double-check if you're using the latest version of Prodigy and upgrade if possible (or try setting `"feed_overlap": false` in your `prodigy.json`).

---

<div class="post-metadata">

**Author:** ![jdixosnd](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/jdixosnd/32/1800_2.png) [@jdixosnd](https://support.prodi.gy/u/jdixosnd)\
**Post date:** [December 15, 2020, 10:59am UTC](https://support.prodi.gy/t/exclude-in-textcat-teach-is-not-working-as-expected/3744/3 "2020-12-15T10:59:29Z")

</div>

Ohh. Ok. I will try these options.  
Thanks.
