Example #1
0
            private void OnGetClassifiers(GetClassifiersTopLevelBrief classifiers)
            {
                bool bFound = false;

                foreach (var c in classifiers.classifiers)
                {
                    if (c.name.ToLower().StartsWith(ClassifierName.ToLower()))
                    {
                        bFound = Service.GetClassifier(c.classifier_id, OnGetClassifier);
                        break;
                    }
                }

                if (!bFound)
                {
                    Log.Warning("VisualRecognition", "Failed to find classifier {0}", ClassifierName);
                    Callback(null);
                }
            }
Example #2
0
            private void GetClassifiers(Classifiers classifiers)
            {
                bool bFound = false;

                foreach (var c in classifiers.classifiers)
                {
                    if (c.name.ToLower().StartsWith(ClassifierName.ToLower()))
                    {
                        // now get the classifier details..
                        bFound = Service.GetClassifier(c.classifier_id, GetClassifier);
                        break;
                    }
                }

                if (!bFound)
                {
                    Log.Error("Natural Language Classifier", "Fail to find classifier {0}", ClassifierName);
                    Callback(null);
                }
            }