Classifying of the document from stream could be performed with the next step
Call Classifymethod for “stream” stream with Documents taxonomy and return 2 best results.
Handle possible ApiException
// Classify document from stream with Documents taxonomy and return 2 best resultstry{varresponse=classifier.Classify(stream,2,Taxonomy.Documents);Console.WriteLine(response.BestClassName,response.BestClassProbability);}catch(ApiExceptione){Console.WriteLine(e.Message);}
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.