# Text Classification, queue contains already labeled annotations when session is closed/reopened

**URL:** <https://support.prodi.gy/t/text-classification-queue-contains-already-labeled-annotations-when-session-is-closed-reopened/583>\
**Category:** Uncategorized\
**Tags:** textcat, solved\
**Created:** [June 5, 2018, 3:10pm UTC](https://support.prodi.gy/t/text-classification-queue-contains-already-labeled-annotations-when-session-is-closed-reopened/583 "2018-06-05T15:10:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paige](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@paige](https://support.prodi.gy/u/paige)\
**Post date:** [June 5, 2018, 3:10pm UTC](https://support.prodi.gy/t/text-classification-queue-contains-already-labeled-annotations-when-session-is-closed-reopened/583/1 "2018-06-05T15:10:23Z")

</div>

Hi there,

Apologies in advance if this issue has already been dealt with (I wasn’t able to find a post with my exact case). When I close/reopen a session using the following command, my interface displays annotations that have already been classified:

```python
prodigy textcat.teach voyages fr_core_news_md EStatutEgo_sample_15000_5clean.jsonl --label voyage --seeds voyages.txt

```

Is this a bug? Is there a way to get fresh, unclassified texts to annotate without having to re-annotate the texts from my previous session(s)?

Thanks in advance!

---

<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 5, 2018, 3:17pm UTC](https://support.prodi.gy/t/text-classification-queue-contains-already-labeled-annotations-when-session-is-closed-reopened/583/2 "2018-06-05T15:17:00Z")

</div>

By default, Prodigy tries to make as little assumptions as possible about your stream and the dataset you’re saving your annotations to. But you can tell it to explicitly exclude all questions you’ve already annotated in any dataset using the `--exclude` option:

```bash
prodigy textcat.teach voyages [other stuff here] --exclude voyages

```

You can define one or more comma-separated datasets to exclude – for example, the current dataset, but also any other sets you’ve created before. (If you’re interested in how this works under the hood and how Prodigy decides whether a task was annotated before, you can find more details in the `set_hashes` section in the docs.)

---

<div class="post-metadata">

**Author:** ![paige](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@paige](https://support.prodi.gy/u/paige)\
**Post date:** [June 6, 2018, 11:03am UTC](https://support.prodi.gy/t/text-classification-queue-contains-already-labeled-annotations-when-session-is-closed-reopened/583/3 "2018-06-06T11:03:49Z")

</div>

> [@ines](#):
>
> prodigy textcat.teach voyages [other stuff here] --exclude voyages

Worked like a charm! Might poke you for other questions in the near future. Thanks!

---

<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 6, 2018, 11:05am UTC](https://support.prodi.gy/t/text-classification-queue-contains-already-labeled-annotations-when-session-is-closed-reopened/583/4 "2018-06-06T11:05:16Z")

</div>

Yay, glad it worked! And sure – that’s what the forum is for 😊
