BuildIt.CognitiveServices.WebLanguageModelAPIExtensions.GenerateNextWords C# (CSharp) Method

GenerateNextWords() public static method

Get the list of words (completions) most likely to follow a given sequence of words.
public static GenerateNextWords ( this operations, string model, string words, double order = default(double?), double maxNumOfCandidatesReturned = default(double?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void
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 ///
return void
            public static void GenerateNextWords(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.Tasks.Task.Factory.StartNew(s => ((IWebLanguageModelAPI)s).GenerateNextWordsAsync(model, words, order, maxNumOfCandidatesReturned, subscriptionKey, ocpApimSubscriptionKey), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None,  System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
            }