# Reduce list of labels in textcat.manual to pre-annotated labels and none of the above

**URL:** <https://support.prodi.gy/t/reduce-list-of-labels-in-textcat-manual-to-pre-annotated-labels-and-none-of-the-above/4880>\
**Category:** Uncategorized\
**Tags:** usage, textcat\
**Created:** [November 2, 2021, 4:17am UTC](https://support.prodi.gy/t/reduce-list-of-labels-in-textcat-manual-to-pre-annotated-labels-and-none-of-the-above/4880 "2021-11-02T04:17:47Z")\
**Posts on this page:** 2\
**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 2, 2021, 4:17am UTC](https://support.prodi.gy/t/reduce-list-of-labels-in-textcat-manual-to-pre-annotated-labels-and-none-of-the-above/4880/1 "2021-11-02T04:17:48Z")

</div>

Hi,

I am wondering if it is possible with the `textcat-manual` recipe to reduce the list of labels to pre-selected/pre-annotated labels only, plus "none-of-the-above". I get an error if I don't point to a file of labels or include the labels in the command line after `--label`.

**Command Line:**

```python
PRODIGY_ALLOWED_SESSIONS=jane,john prodigy textcat.manual dataset_name /path_to_file/filename.jsonl --label /path_to_file/labels.txt

```

**.jsonl file sample:**

```python
{"id":"1234","deployment":"xxxx","date":"2021-11-01","text":"random text goes here","label":"label1","orig_accept":["label1"],"score":"0.5","accept":["label1","label2","label3","none-of-the-above"]}

```

Additionally, the pre-annotated labels are ranked 1-3. Is there any way to include that ranking in the UI?

For instance, the command line content and .jsonl content below: I was able to get the top three labels in the UI, with the top (pre-annotated) label chosen pre-checked. However, I had to hard code the label names for the individual document's results in the command line arguments. I would like to just have the top three labels in my .jsonl file appear in the UI. This differs for each document.

**.jsonl file:**

```python
{"id":"1234","deployment":"xxxx","date":"2021-11-02","text":"random text","label":"label1","orig_accept":["label1"],"score":"0.5","accept":["label1"]}

```

**command line arguments:**

```python
PRODIGY_ALLOWED_SESSIONS=jane,john prodigy textcat.manual dataset_name /path_to_file/filename.jsonl --label label1,label2,label3,none-of-the-above  

```

 ![sample_top_three_labels](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/2/2feb2b983cfdaf9abc99dc2655c891f299a81f6e.jpeg)

Thanks!  
Cheyanne

---

<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 8, 2021, 12:45am UTC](https://support.prodi.gy/t/reduce-list-of-labels-in-textcat-manual-to-pre-annotated-labels-and-none-of-the-above/4880/2 "2021-11-08T00:45:19Z")

</div>

Hi,

Sorry for taking this long and thanks for waiting!

> I am wondering if it is possible with the textcat-manual recipe to reduce the list of labels to pre-selected/pre-annotated labels only, plus "none-of-the-above".

You still need to supply values for the `--label` so that Prodigy knows what to display in the interface. This is also to ensure that the annotator "sees" the full list of labels when labelling. Another thing that you can do is include an option for `none-of-the-above` and then have a separate step that re-annotates all examples where the annotator selected `none`

> Additionally, the pre-annotated labels are ranked 1-3. Is there any way to include that ranking in the UI?

There's no built-in feature for ranking labels but you can probably implement a custom HTML component with a dropdown for each label. Here's a good example: [custom javascript elements - #3 by ines](https://support.prodi.gy/t/custom-javascript-elements/1496/3)
