Classify() public method

Classify sends a text to a classifier and returns a classification.
public Classify ( string xmlRequest ) : List
xmlRequest string
return List
コード例 #1
0
        public void ClassifyTest_ResponseResultsListIsNotEmpty()
        {
            ReadCalls classifierService = new ReadCalls();
            string xmlRequest = XmlBuilder.BuildClassifyXML("פלאפל", "CuisinesTest");

            var response = classifierService.Classify(xmlRequest);

            Assert.IsTrue(response.Count > 0);
        }
コード例 #2
0
        public void ClassifyTest_ResponseShouldNotBeNull()
        {
            ReadCalls classifierService = new ReadCalls();

            //string xmlQuery = XmlBuilder.ClassifyXML("פלאפל");

            var response = classifierService.Classify("פלאפל");

            Assert.IsNotNull(response);
        }