コード例 #1
0
 public Client(string luisEndpoint, string luisKey, string luisAppId)
 {
     _luisPredictionServices = new List <LuisPredictionService>()
     {
         new LuisPredictionService(luisEndpoint, luisKey, luisAppId)
     };
     _transcriptParser = new TranscriptParser();
     _resultGenerator  = new IAPResultGenerator();
 }
コード例 #2
0
 public Client(string luisEndpoint, string luisKey, string luisAppId, string textAnalyticsEndpoint, string textAnalyticsKey, string language = Constants.TextAnalyticsLanguageCode)
 {
     _luisPredictionServices = new List <LuisPredictionService>()
     {
         new LuisPredictionService(luisEndpoint, luisKey, luisAppId)
     };
     _transcriptParser     = new TranscriptParser();
     _resultGenerator      = new IAPResultGenerator();
     _textAnalyticsService = new TextAnalyticsService(textAnalyticsEndpoint, textAnalyticsKey, language);
 }
コード例 #3
0
 public IAPProccessController(
     IStorageService storageService,
     ITranscriptParser transcriptParser,
     ILuisPredictionService luisPredictionService,
     IIAPResultGenerator transcriptGenerator,
     ITextAnalyticsService textAnalyticsService)
 {
     _storageService        = storageService;
     _transcriptParser      = transcriptParser;
     _luisPredictionService = luisPredictionService;
     _resultGenerator       = transcriptGenerator;
     _textAnalyticsService  = textAnalyticsService;
 }
コード例 #4
0
 public Client(List <LuisCredentials> credentials)
 {
     if (credentials == null || credentials.Count == 0)
     {
         throw new Exception("Credentials list can't be null or empty");
     }
     _luisPredictionServices = new List <LuisPredictionService>();
     foreach (var credential in credentials)
     {
         _luisPredictionServices.Add(new LuisPredictionService(credential.Endpoint, credential.Key, credential.AppId));
     }
     _transcriptParser = new TranscriptParser();
     _resultGenerator  = new IAPResultGenerator();
 }