BuildIt.CognitiveServices.AzureMachineLearningTextAnalyticsExtensions.DetectTopicsAsync C# (CSharp) Method

DetectTopicsAsync() public static method

The API returns the top detected topics for a list of submitted text documents. A topic is identified with a key phrase, which can be one or more related words. Use the URL parameters and stop word list to control which words or documents are filtered out. You can also supply a list of topics to exclude from the response. At least 100 text documents must be submitted, however it is designed to detect topics across hundreds to thousands of documents. Note that one transaction is charged per text document submitted. For best performance, limit each document to a short, human written text paragraph such as review, conversation or user feedback.
public static DetectTopicsAsync ( this operations, int minDocumentsPerWord = default(int?), int maxDocumentsPerWord = default(int?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), TopicDetectionInputV2 topicDetectionInputV2 = default(TopicDetectionInputV2), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task
operations this /// The operations group for this extension method. ///
minDocumentsPerWord int /// Format - int32. (optional) Words that occur in less than this many /// documents are ignored. /// Use this parameter to help exclude rare document topics. /// Omit to let the service choose appropriate value. ///
maxDocumentsPerWord int /// Format - int32. (optional) Words that occur in more than this many /// documents are ignored. /// Use this parameter to help exclude ubiquitous document topics. /// Omit to let the service choose appropriate value. ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
topicDetectionInputV2 TopicDetectionInputV2 ///
cancellationToken System /// The cancellation token. ///
return System.Threading.Tasks.Task
            public static async System.Threading.Tasks.Task<ErrorResponse> DetectTopicsAsync(this IAzureMachineLearningTextAnalytics operations, int? minDocumentsPerWord = default(int?), int? maxDocumentsPerWord = default(int?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), TopicDetectionInputV2 topicDetectionInputV2 = default(TopicDetectionInputV2), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
            {
                using (var _result = await operations.DetectTopicsWithHttpMessagesAsync(minDocumentsPerWord, maxDocumentsPerWord, subscriptionKey, ocpApimSubscriptionKey, topicDetectionInputV2, null, cancellationToken).ConfigureAwait(false))
                {
                    return _result.Body;
                }
            }