# Text Classification Custom Label Issue

**URL:** <https://support.prodi.gy/t/text-classification-custom-label-issue/4849>\
**Category:** Uncategorized\
**Tags:** usage, textcat\
**Created:** [October 24, 2021, 9:49pm UTC](https://support.prodi.gy/t/text-classification-custom-label-issue/4849 "2021-10-24T21:49:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dawudis](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/dawudis/32/2357_2.png) [@Dawudis](https://support.prodi.gy/u/Dawudis)\
**Post date:** [October 24, 2021, 9:49pm UTC](https://support.prodi.gy/t/text-classification-custom-label-issue/4849/1 "2021-10-24T21:49:37Z")

</div>

I'm having a bit of trouble with the text classification feature of Prodigy.  
Recently, I created my own .jsonl dataset of news article texts to be manually classified into custom labels/categories. There are 20 lines of texts with their sources. For example:

```python
{"text":"One of the reasons Trump lost his re-election bid is that the American people were tired — not only of the daily chaos and his non-stop tweets, but they knew he made up a lot of things and they lost trust in him.","meta":{"source":"The Hill"}},

```

After creating this dataset, I put the following code in the terminal:

```python
prodigy textcat.manual news_articles ./article_texts.jsonl --label Honesty,Economic Management,Relations,Integrity

```

However, it failed to open and it didn't work.  
I feel like I might be doing something wrong and I would love if to get some insight on how to fix my problem. 🧐

---

<div class="post-metadata">

**Author:** ![adamkgoldfarb](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/adamkgoldfarb/32/741_2.png) [@adamkgoldfarb](https://support.prodi.gy/u/adamkgoldfarb)\
**Post date:** [October 24, 2021, 10:09pm UTC](https://support.prodi.gy/t/text-classification-custom-label-issue/4849/2 "2021-10-24T22:09:31Z")

</div>

Have you tried ‘quotes’ around the label with a space in it?

---

<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:** [October 25, 2021, 8:59am UTC](https://support.prodi.gy/t/text-classification-custom-label-issue/4849/3 "2021-10-25T08:59:16Z")

</div>

Can you share some more details on what exactly doesn't work? Do you see an error message?

---

<div class="post-metadata">

**Author:** ![Dawudis](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/dawudis/32/2357_2.png) [@Dawudis](https://support.prodi.gy/u/Dawudis)\
**Post date:** [October 26, 2021, 6:04pm UTC](https://support.prodi.gy/t/text-classification-custom-label-issue/4849/4 "2021-10-26T18:04:00Z")

</div>

Well, when I run the code, it opens up the browser, but all I get is a blank page with this text:

```python
#!/bin/sh
python -m prodigy "$@"

```

What do you think?

---

<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:** [October 27, 2021, 9:15am UTC](https://support.prodi.gy/t/text-classification-custom-label-issue/4849/5 "2021-10-27T09:15:08Z")

</div>

@Dawudis Are you on Windows? It looks like your shell can't interpret the shortcut `prodigy`. If you use `python -m prodigy` instead, it should work 🙂

---

<div class="post-metadata">

**Author:** ![Dawudis](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/dawudis/32/2357_2.png) [@Dawudis](https://support.prodi.gy/u/Dawudis)\
**Post date:** [October 27, 2021, 1:55pm UTC](https://support.prodi.gy/t/text-classification-custom-label-issue/4849/6 "2021-10-27T13:55:24Z")

</div>

Yup, that did the trick! Really appreciate the help!
