# textcat.manual binary annotation without labels

**URL:** <https://support.prodi.gy/t/textcat-manual-binary-annotation-without-labels/4928>\
**Category:** Uncategorized\
**Tags:** usage, textcat, solved\
**Created:** [November 11, 2021, 8:25am UTC](https://support.prodi.gy/t/textcat-manual-binary-annotation-without-labels/4928 "2021-11-11T08:25:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cheyanneb](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/cheyanneb/32/2409_2.png) [@cheyanneb](https://support.prodi.gy/u/cheyanneb)\
**Post date:** [November 11, 2021, 8:25am UTC](https://support.prodi.gy/t/textcat-manual-binary-annotation-without-labels/4928/1 "2021-11-11T08:25:21Z")

</div>

Hi,

I have a pre-annotated dataset. Each document in the `.jsonl` file has a different label. I have been able to set up a system where the pre-annotated label is in the banner above the sentence/document, but it required me to have a list of dropdown or checkbox labels that I need to declare as an argument on the command line. Is there a way to just have the banner with the pre-annotated label (which is different per document) and the accept/reject button without the `--labels` requirement on the command line?

I tried to use `mark` with a list of labels, as I just want the label as a banner with the sentence, and the `accept` and `reject` buttons. Each document is pre-annotated and has its own label taken from a list of ~100 labels. Example from `.jsonl`

```python
{"id":"1234","deployment":"xxxx","date":"2021-10-20 12:46:00","text":"random text here","label":"label1","orig_accept":["label1"]}
{"id":"1234","deployment":"xxxx","date":"2021-10-20 12:46:00","text":"random text here","label":"label2","orig_accept":["label2"]}

```

Thank you!  
Cheyanne

---

<div class="post-metadata">

**Author:** ![cheyanneb](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/cheyanneb/32/2409_2.png) [@cheyanneb](https://support.prodi.gy/u/cheyanneb)\
**Post date:** [November 12, 2021, 2:57am UTC](https://support.prodi.gy/t/textcat-manual-binary-annotation-without-labels/4928/2 "2021-11-12T02:57:07Z")

</div>

I may have solved this by using the following command:

```python
PRODIGY_ALLOWED_SESSIONS=max,sam prodigy mark testset_name /<path_to_file>/file.jsonl --view-id classification

```

---

<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:** [November 14, 2021, 10:38am UTC](https://support.prodi.gy/t/textcat-manual-binary-annotation-without-labels/4928/3 "2021-11-14T10:38:26Z")

</div>

Yes, that's a good solution. If you already have pre-annotated labels, all you need to do is render the exact data that comes in.
