LanguageUnderstandingModel Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. intent. LanguageUnderstandingModel
- com.
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 Language |
Constructor Summary
Modifier | Constructor | Description |
---|---|---|
protected | LanguageUnderstandingModel() |
Default constructor for Language |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Language |
fromAppId(String appId)
Creates a language understanding model using the application id of Language Understanding service. |
static
Language |
fromEndpoint(String uri)
Creates a language understanding model using the specified endpoint url. |
static
Language |
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. |
Safe |
getImpl()
Returns the language understanding model. |
void |
setId(String modelId)
Sets the ID for this item. |
Methods inherited from java.lang.Object
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:
Returns:
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:
Returns:
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:
Returns:
getId
public String getId()
Returns the ID for this item. It should be unique
Returns:
getImpl
public SafeHandle getImpl()
Returns the language understanding model.
Returns:
setId
public void setId(String modelId)
Sets the ID for this item. It should be unique
Parameters:
Applies to
Azure SDK for Java
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin