# textcat.batch-train documentation fix?

**URL:** <https://support.prodi.gy/t/textcat-batch-train-documentation-fix/1372>\
**Category:** Uncategorized\
**Tags:** docs, textcat, done\
**Created:** [April 4, 2019, 3:15pm UTC](https://support.prodi.gy/t/textcat-batch-train-documentation-fix/1372 "2019-04-04T15:15:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anubhav](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@anubhav](https://support.prodi.gy/u/anubhav)\
**Post date:** [April 4, 2019, 3:15pm UTC](https://support.prodi.gy/t/textcat-batch-train-documentation-fix/1372/1 "2019-04-04T15:15:55Z")

</div>

Hi,

The [recipe](https://prodi.gy/docs/recipes#textcat-batch-train) for `textcat.batch-train` shows usage with a `--label` parameter:

```
prodigy textcat.batch-train gh_issues /tmp/model --n-iter 10 --eval-split 0.2 
--dropout 0.2 --label DOCUMENTATION

```

However, this usage returns an error for me:

```
python -m prodigy textcat.batch-train newsprocessor_category en_core_web_md --label DOCUMENTATION
usage: prodigy textcat.batch-train [-h] [-o None] [-la en] [-f 1] [-d 0.2]
                                   [-n 10] [-b 10] [-e None] [-es None] [-L]
                                   [-S]
                                   dataset [input_model]
prodigy textcat.batch-train: error: unrecognized arguments: --label DOCUMENTATION

```

Looks like the `--label` argument is not supported. Similar issue seems to have been reported earlier for [workflow documentation](https://support.prodi.gy/t/textcat-batch-train-docs-fix/901):

---

<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:** [April 5, 2019, 8:23am UTC](https://support.prodi.gy/t/textcat-batch-train-documentation-fix/1372/2 "2019-04-05T08:23:32Z")

</div>

Ah thanks, will fix! And yes, the `--label` argument used to be necessary, but the recipe now reads the labels from the data automatically.

---

<div class="post-metadata">

**Author:** ![fredo](https://avatars.discourse-cdn.com/v4/letter/f/b4bc9f/32.png) [@fredo](https://support.prodi.gy/u/fredo)\
**Post date:** [April 10, 2019, 4:58am UTC](https://support.prodi.gy/t/textcat-batch-train-documentation-fix/1372/3 "2019-04-10T04:58:43Z")

</div>

Thankyou! I’ve met the same problem. But I think ‘–label’ for a textcat mission is pretty necessary. For example I have annotated some samples for 7 categories but now I just want to train and save a model for only ONE of those categories , without --label which allows me to choose the cate I want, things can be inconvenient.
