textcat.batch-train docs fix

The documentation at Workflow: Train a Model
states that the training API is:

prodigy textcat.batch-train metooindia /tmp/model --eval-split 0.2 --label LABEL

which throws different errors, such as OSError: [E053] Could not read meta.json from model\meta.json
and prodigy textcat.batch-train: error: unrecognized arguments: --label LABEL

The correct API which works for me in Prodigy v1.6.1 is
prodigy textcat.batch-train metooindia --output-model model --eval-split 0.2

Ah, damn, looks like we forgot to adjust this. Thanks for the heads-up, fixing! :+1:

1 Like