BuildIt.CognitiveServices.WebLanguageModelAPIExtensions.BreakIntoWords C# (CSharp) Метод

BreakIntoWords() публичный статический Метод

Insert spaces into a string of words lacking spaces, like a hashtag or part of a URL. Punctuation or exotic characters can prevent a string from being broken, so it’s best to limit input strings to lower-case, alpha-numeric characters.
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 ///
Результат 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();
            }