Ejemplo n.º 1
0
 /// <summary>
 /// Gets the training status of all models (intents and entities) for the
 /// specified LUIS app. You must call the train API to train the LUIS app
 /// before you call this API to get training status. "appID" specifies the LUIS
 /// app ID. "versionId" specifies the version number of the LUIS app. For
 /// example, "0.1".
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='azureRegion'>
 /// Supported Azure regions for Cognitive Services endpoints. Possible values
 /// include: 'westus', 'westeurope'
 /// </param>
 /// <param name='appId'>
 /// Format - guid. The application ID.
 /// </param>
 /// <param name='versionId'>
 /// The version ID of the task.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <ModelTrainingInfo> > GetApplicationVersionTrainingStatusAsync(this ITrain operations, AzureRegions azureRegion, string appId, string versionId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetApplicationVersionTrainingStatusWithHttpMessagesAsync(azureRegion, appId, versionId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }