Aracılığıyla paylaş


LanguageUnderstandingModel Class

  • java.lang.Object
    • com.microsoft.cognitiveservices.speech.intent.LanguageUnderstandingModel

Implements

public class LanguageUnderstandingModel
implements KeyedItem

Represents language understanding model used for intent recognition.

Field Summary

Modifier and Type Field and Description
protected java.lang.String modelId

This ID is used for this LanguageUnderstandingModel.

Constructor Summary

Modifier Constructor Description
protected LanguageUnderstandingModel()

Default constructor for LanguageUnderstandingModel.

Method Summary

Modifier and Type Method and Description
static LanguageUnderstandingModel fromAppId(String appId)

Creates a language understanding model using the application id of Language Understanding service.

static LanguageUnderstandingModel fromEndpoint(String uri)

Creates a language understanding model using the specified endpoint url.

static LanguageUnderstandingModel fromSubscription(String subscriptionKey, String appId, String region)

Creates a language understanding model using subscription key, application id and region of Language Understanding service.

java.lang.String getId()

Returns the ID for this item.

SafeHandle getImpl()

Returns the language understanding model.

void setId(String modelId)

Sets the ID for this item.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Field Details

modelId

protected String modelId

This ID is used for this LanguageUnderstandingModel. For a LUIS model it is assigned to the app ID of the LUIS application.

Constructor Details

LanguageUnderstandingModel

protected LanguageUnderstandingModel()

Default constructor for LanguageUnderstandingModel.

Method Details

fromAppId

public static LanguageUnderstandingModel fromAppId(String appId)

Creates a language understanding model using the application id of Language Understanding service.

Parameters:

appId - A String that represents the application id of Language Understanding service.

Returns:

The language understanding model being created.

fromEndpoint

public static LanguageUnderstandingModel fromEndpoint(String uri)

Creates a language understanding model using the specified endpoint url. The Speech SDK supports LUIS v2.0 endpoint, see https://docs.microsoft.com/azure/cognitive-services/speech-service/quickstarts/intent-recognition for more details.

Parameters:

uri - A String that represents the endpoint of the language understanding model.

Returns:

The language understanding model being created.

fromSubscription

public static LanguageUnderstandingModel fromSubscription(String subscriptionKey, String appId, String region)

Creates a language understanding model using subscription key, application id and region of Language Understanding service.

Parameters:

subscriptionKey - A String that represents the subscription key of Language Understanding service.
appId - A String that represents the application id of Language Understanding service.
region - A String that represents the region of the Language Understanding service (see the region page).

Returns:

The language understanding model being created.

getId

public String getId()

Returns the ID for this item. It should be unique

Returns:

A string representing the id of this model.

getImpl

public SafeHandle getImpl()

Returns the language understanding model.

Returns:

The implementation of the model.

setId

public void setId(String modelId)

Sets the ID for this item. It should be unique

Parameters:

modelId - A string representing the id of this model.

Applies to