textcat.teach mutally exclusive option

I recently started using Prodigy v.1.8.5 and I see in the documentation that I can set a mutually exclusive tag -E. When I do so I get this response
prodigy textcat.teach: error: unrecognized arguments: -E
Equally when I look at the recipe i don't see that flag either.

I assume declaring labels as mutually exclusive helps greatly with classification?

Thanks for flagging this – this was a mistake in the website docs! The --exclusive flag is available on the textcat.manual recipe (to define whether the options should allow multiple selection) and in textcat.batch-train to configure how to update the model with the examples.

We don't currently use it in the binary textcat.teach recipe. That said, exclusive_classes is a keyword argument on the TextClassifier annotation model, so you could try to set it in the textcat.teach recipe and see what happens. I'm not sure how it interacts with the active learning – but maybe you'll see an improvement in suggestions!

1 Like