BuildIt.CognitiveServices.AzureMachineLearningTextAnalyticsExtensions.DetectLanguageAsync C# (CSharp) Метод

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

The API returns the detected language and a numeric score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. A total of 120 languages are supported.
public static DetectLanguageAsync ( this operations, int numberOfLanguagesToDetect = default(int?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), BatchInputV2 batchInputV2 = default(BatchInputV2), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task
operations this /// The operations group for this extension method. ///
numberOfLanguagesToDetect int /// Format - int32. (Optional) Number of languages to detect. Set to 1 by /// default. ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
batchInputV2 BatchInputV2 ///
cancellationToken System /// The cancellation token. ///
Результат System.Threading.Tasks.Task
            public static async System.Threading.Tasks.Task<object> DetectLanguageAsync(this IAzureMachineLearningTextAnalytics operations, int? numberOfLanguagesToDetect = default(int?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), BatchInputV2 batchInputV2 = default(BatchInputV2), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
            {
                using (var _result = await operations.DetectLanguageWithHttpMessagesAsync(numberOfLanguagesToDetect, subscriptionKey, ocpApimSubscriptionKey, batchInputV2, null, cancellationToken).ConfigureAwait(false))
                {
                    return _result.Body;
                }
            }