Call Classify method with a text as the first parameter to perform classification. Default taxonomy (IAB-2) and bestClassesCount (1) will be used.
varresponse=classifier.Classify("Medicine is an important part of our lifes");Console.WriteLine(response.BestClassName,response.BestClassProbability);
Raw text classification with Documents taxonomy and 2 best classes to return
Taxonomy, bestClassesCount and precisionRecallBalance could also be specified:
varresponse=classifier.Classify("Medicine is an important part of our lifes",2,Taxonomy.Documents,PrecisionRecallBalance.Recall);Console.WriteLine(response.BestClassName,response.BestClassProbability);
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.