Class LanguageUnderstandingModel

  • All Implemented Interfaces:
    KeyedItem
    Direct Known Subclasses:
    PatternMatchingModel

    public class LanguageUnderstandingModel
    extends Object
    implements KeyedItem
    Represents language understanding model used for intent recognition.
    • 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.
    • Constructor Detail

      • LanguageUnderstandingModel

        protected LanguageUnderstandingModel()
        Default constructor for LanguageUnderstandingModel.
    • 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
        Specified by:
        getId in interface KeyedItem
        Returns:
        A string representing the id of this model.
      • 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.