Exemplo n.º 1
0
        public override IEnumerator RunTest()
        {
            Log.Status("TestAlchemyAPI", "Test waiting to start");


            if (Config.Instance.FindCredentials(m_AlchemnyAPI.GetServiceID()) == null)
            {
                yield break;
            }

            Log.Status("TestAlchemyAPI", "Test Started");

            m_NumberOfTestEntityExtraction = 7;
            m_AlchemnyAPI.GetCombinedCall(OnGetCombinedCall, "How are you Watson?");
            m_AlchemnyAPI.GetCombinedCall(OnGetCombinedCall, "How can Watson help patients?");
            m_AlchemnyAPI.GetCombinedCall(OnGetCombinedCall, "Where is Watson?");                  //Name
            m_AlchemnyAPI.GetCombinedCall(OnGetCombinedCall, "Where is Paris?");                   //Location
            m_AlchemnyAPI.GetCombinedCall(OnGetCombinedCall, "Which ships are close to Karratha"); //location with name
            m_AlchemnyAPI.GetCombinedCall(OnGetCombinedCall, "Are you artifical intelligence?");
            m_AlchemnyAPI.GetCombinedCall(OnGetCombinedCall, "What happened in NewYork in december 1913 and February 1975");

            while (!m_EntityExtractionTested)
            {
                yield return(null);
            }

            yield break;
        }