public static BreakIntoWords ( this operations, string model, string text, 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 /// |
text | string | /// The line of text to break into words. If spaces are present, they will be /// interpreted as hard breaks and maintained, except for leading or trailing /// spaces, which will be trimmed. /// |
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 BreakIntoWords(this IWebLanguageModelAPI operations, string model, string text, 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).BreakIntoWordsAsync(model, text, order, maxNumOfCandidatesReturned, subscriptionKey, ocpApimSubscriptionKey), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}