Freigeben über


TextAnalyticsManager Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.language.textanalytics.TextAnalyticsManager

public class TextAnalyticsManager

Entry point to Azure Cognitive Services Text Analytics manager.

Method Summary

Modifier and Type Method and Description
TextAnalyticsAPI authenticate(AzureRegions region, ServiceClientCredentials credentials)

Initializes an instance of Text Analytics API client.

TextAnalyticsAPI authenticate(AzureRegions region, String subscriptionKey)

Initializes an instance of Text Analytics API client.

TextAnalyticsAPI authenticate(RestClient restClient)

Initializes an instance of Text Analytics API client.

TextAnalyticsAPI authenticate(String baseUrl, final String subscriptionKey)

Initializes an instance of Text Analytics API client.

TextAnalyticsAPI authenticate(String baseUrl, ServiceClientCredentials credentials)

Initializes an instance of Text Analytics API client.

Method Details

authenticate

public static TextAnalyticsAPI authenticate(AzureRegions region, ServiceClientCredentials credentials)

Initializes an instance of Text Analytics API client.

Parameters:

region - Supported Azure regions for Cognitive Services endpoints.
credentials - the management credentials for Azure

Returns:

the Text Analytics API client

authenticate

public static TextAnalyticsAPI authenticate(AzureRegions region, String subscriptionKey)

Initializes an instance of Text Analytics API client.

Parameters:

region - Supported Azure regions for Cognitive Services endpoints.
subscriptionKey - the Text Analytics API key

Returns:

the Text Analytics API client

authenticate

public static TextAnalyticsAPI authenticate(RestClient restClient)

Initializes an instance of Text Analytics API client.

Parameters:

restClient - the REST client to connect to Azure.

Returns:

the Text Analytics API client

authenticate

public static TextAnalyticsAPI authenticate(String baseUrl, final String subscriptionKey)

Initializes an instance of Text Analytics API client.

Parameters:

baseUrl - the base URL of the service
subscriptionKey - the Text Analytics API key

Returns:

the Text Analytics API client

authenticate

public static TextAnalyticsAPI authenticate(String baseUrl, ServiceClientCredentials credentials)

Initializes an instance of Text Analytics API client.

Parameters:

baseUrl - the base URL of the service
credentials - the management credentials for Azure

Returns:

the Text Analytics API client

Applies to