# textcat.batch-train --label argument unrecognised

**URL:** <https://support.prodi.gy/t/textcat-batch-train-label-argument-unrecognised/2190>\
**Category:** Uncategorized\
**Tags:** docs, textcat, done\
**Created:** [November 5, 2019, 4:24pm UTC](https://support.prodi.gy/t/textcat-batch-train-label-argument-unrecognised/2190 "2019-11-05T16:24:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JanP](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@JanP](https://support.prodi.gy/u/JanP)\
**Post date:** [November 5, 2019, 4:24pm UTC](https://support.prodi.gy/t/textcat-batch-train-label-argument-unrecognised/2190/1 "2019-11-05T16:24:20Z")

</div>

Hi there!

According to the docs, this is the syntax of textcat.teach

```python
prodigy textcat.batch-train [dataset] [input_model] [--output] [--label] [--factor] [--dropout] [--n-iter] [--batch-size] [--eval-id] [--eval-split] [--exclusive] [--silent]

```

following this example, I run

```python
prodigy textcat.batch-train Econ --output /Model --label "ECON" --eval-split 0.2

```

but only get

```python
prodigy textcat.batch-train: error: unrecognized arguments: --label ECON

```

I have tried -l argument as well, but spacy then interprets it as language...

Was the --label argument deprecated?

---

<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 5, 2019, 4:44pm UTC](https://support.prodi.gy/t/textcat-batch-train-label-argument-unrecognised/2190/2 "2019-11-05T16:44:24Z")

</div>

Ah, yes, that's a mistake. Thanks for the report. The label is now read automatically from the data. Already fixed this and will upload an updated `PRODIGY_README.html`.
