BuildIt.CognitiveServices.WebLanguageModelAPIExtensions.GenerateNextWordsAsync C# (CSharp) Méthode

GenerateNextWordsAsync() public static méthode

Get the list of words (completions) most likely to follow a given sequence of words.
public static GenerateNextWordsAsync ( this operations, string model, string words, double order = default(double?), double maxNumOfCandidatesReturned = default(double?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task
operations this /// The operations group for this extension method. ///
model string /// Which model to use, supported value: title/anchor/query/body ///
words string /// A string containing a sequence of words from which to generate the list of /// words likely to follow. The words should be separated by spaces. ///
order double /// The order of N-gram. If not specified, use default value 5 .Supported /// value: 1, 2, 3, 4, 5. ///
maxNumOfCandidatesReturned double /// Max number of candidates would be returned. If not specified, use default /// value 5. ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
cancellationToken System /// The cancellation token. ///
Résultat System.Threading.Tasks.Task
            public static async System.Threading.Tasks.Task GenerateNextWordsAsync(this IWebLanguageModelAPI operations, string model, string words, double? order = default(double?), double? maxNumOfCandidatesReturned = default(double?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
            {
                await operations.GenerateNextWordsWithHttpMessagesAsync(model, words, order, maxNumOfCandidatesReturned, subscriptionKey, ocpApimSubscriptionKey, null, cancellationToken).ConfigureAwait(false);
            }