# Classify document from stream Classifying of the document from stream could be performed with the next step * Call [**Classify** ](https://reference.groupdocs.com/net/classification/groupdocs.classification/classifier/methods/classify)method for "stream" stream with Documents taxonomy and return 2 best results. * Handle possible ApiException  ```csharp // 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); } ```