Class LanguageUnderstandingModel
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.intent.LanguageUnderstandingModel
-
- All Implemented Interfaces:
KeyedItem
- Direct Known Subclasses:
PatternMatchingModel
public class LanguageUnderstandingModel extends Object implements KeyedItem
Represents language understanding model used for intent recognition.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLanguageUnderstandingModel()Default constructor for LanguageUnderstandingModel.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LanguageUnderstandingModelfromAppId(String appId)Creates a language understanding model using the application id of Language Understanding service.static LanguageUnderstandingModelfromEndpoint(String uri)Creates a language understanding model using the specified endpoint url.static LanguageUnderstandingModelfromSubscription(String subscriptionKey, String appId, String region)Creates a language understanding model using subscription key, application id and region of Language Understanding service.StringgetId()Returns the ID for this item.SafeHandlegetImpl()Returns the language understanding model.voidsetId(String modelId)Sets the ID for this item.
-
-
-
Field Detail
-
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.
-
-
Method Detail
-
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.
-
getId
public String getId()
Returns the ID for this item. It should be unique
-
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.
-
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.
-
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.
-
getImpl
public SafeHandle getImpl()
Returns the language understanding model.- Returns:
- The implementation of the model.
-
-