Classify document from stream
Classifying of the document from stream could be performed with the next step
- Call Classify method 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
{
var response = classifier.Classify(stream, 2, Taxonomy.Documents);
Console.WriteLine(response.BestClassName, response.BestClassProbability);
}
catch (ApiException e)
{
Console.WriteLine(e.Message);
}