How to set TextClassifier for exclusive classes

I saw on this forum Textclassifer has the exclusive_classes parameter to set the model is for exclusive classes
but when I added that parameter, return unknow parameter error

How can I say to TextClassifier the model categorize exclusive classes?

There's some documentation about TextClassifier method?

Thanks

Hi @info2000!

If you're using prodigy train, --textcat assumes mutually exclusive classes, while --textcat-multilabel assumes non-exclusive classes. Here's the Prodigy train documentation:

Argument Type Description Default
--textcat, -tc str One or more (comma-separated) datasets for the text classifier (exclusive categories). Use the eval: prefix for evaluation sets. None
--textcat-multilabel, -tcm str One or more (comma-separated) datasets for the text classifier (non-exclusive categories). Use the eval: prefix for evaluation sets. None

Can you provide the link where you found the exclusive_classes parameter? I suspect that post may be outdated.

If you're interested, there are more details on the differences in the spaCy documentation for TextCategorizer:

Let me know if this helps or if you have further questions!

Thanks @ryanwesslen
this is the link textcat.teach mutally exclusive option - #2 by ines