/// <summary>
 /// Cleans up the NLU service.
 /// </summary>
 /// <returns>Task to await the cleanup operation.</returns>
 /// <param name="instance">NLU service instance.</param>
 public static Task CleanupAsync(this INLUService instance)
 {
     return(instance.CleanupAsync(CancellationToken.None));
 }
 /// <summary>
 /// Tests the NLU service.
 /// </summary>
 /// <returns>Task to await the resulting labeled utterance.</returns>
 /// <param name="instance">NLU service instance.</param>
 /// <param name="utterance">Unlabeled utterance.</param>
 public static Task <LabeledUtterance> TestAsync(this INLUService instance, string utterance)
 {
     return(instance.TestAsync(utterance, CancellationToken.None));
 }
 /// <summary>
 /// Tests the NLU service using speech.
 /// </summary>
 /// <returns>Task to await the resulting labeled utterance.</returns>
 /// <param name="instance">NLU service instance.</param>
 /// <param name="speechFile">Speech file.</param>
 public static Task <LabeledUtterance> TestSpeechAsync(this INLUService instance, string speechFile)
 {
     return(instance.TestSpeechAsync(speechFile, CancellationToken.None));
 }
 /// <summary>
 /// Trains the NLU service.
 /// </summary>
 /// <returns>Task to await the training operation.</returns>
 /// <param name="instance">NLU service instance.</param>
 /// <param name="utterances">Labeled utterances to train on.</param>
 public static Task TrainAsync(this INLUService instance, IEnumerable <LabeledUtterance> utterances)
 {
     return(instance.TrainAsync(utterances, CancellationToken.None));
 }