BuildIt.CognitiveServices.AzureMachineLearningTextAnalyticsExtensions.DetectLanguage C# (CSharp) Méthode

DetectLanguage() public static méthode

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 DetectLanguage ( this operations, int numberOfLanguagesToDetect = default(int?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), BatchInputV2 batchInputV2 = default(BatchInputV2) ) : object
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 ///
Résultat object
            public static object DetectLanguage(this IAzureMachineLearningTextAnalytics operations, int? numberOfLanguagesToDetect = default(int?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), BatchInputV2 batchInputV2 = default(BatchInputV2))
            {
                return System.Threading.Tasks.Task.Factory.StartNew(s => ((IAzureMachineLearningTextAnalytics)s).DetectLanguageAsync(numberOfLanguagesToDetect, subscriptionKey, ocpApimSubscriptionKey, batchInputV2), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
            }