class Intent::LanguageUnderstandingModel

Represents language understanding model used for intent recognition.

Members

LanguageUnderstandingModel

Syntax: public inline explicit LanguageUnderstandingModel ( SPXLUMODELHANDLE hlumodel );

Internal constructor. Creates a new instance using the provided handle.

Parameters

  • hlumodel Language understanding model handle.

~LanguageUnderstandingModel

Syntax: public inline virtual ~LanguageUnderstandingModel ( );

Virtual destructor.

operator SPXLUMODELHANDLE

Syntax: public inline explicit operator SPXLUMODELHANDLE ( );

Internal. Explicit conversion operator.

Returns

A handle.

FromEndpoint

Syntax: public inline static std::shared_ptr< LanguageUnderstandingModel > FromEndpoint ( const std::string & uri );

Creates a language understanding (LUIS) model using the specified endpoint url.

The Speech SDK only supports LUIS v2.0 endpoints, see https://docs.microsoft.com/azure/cognitive-services/speech-service/quickstarts/intent-recognition for more details.

Parameters

  • uri The endpoint url of a language understanding model.

Returns

A shared pointer to language understanding model.

FromAppId

Syntax: public inline static std::shared_ptr< LanguageUnderstandingModel > FromAppId ( const std::string & appId );

Creates a language understanding model using the specified app id.

Parameters

  • appId A string that represents the application id of Language Understanding service.

Returns

A shared pointer to language understanding model.

FromSubscription

Syntax: public inline static std::shared_ptr< LanguageUnderstandingModel > FromSubscription ( const std::string & subscriptionKey , const std::string & appId , const std::string & region );

Creates a language understanding model using the specified hostname, subscription key and application id.

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

A shared pointer to language understanding model.