Dela via


Class SPXLanguageUnderstandingModel

Declaration

@class SPXLanguageUnderstandingModel : NSObject;

Description

Represents the language understanding model used for intent recognition.

Methods

initWithEndpoint:

Initializes a language understanding model using the specified endpoint URL.

The Speech SDK only supports LUIS v2.0 endpoints.

For details, see Quickstart: Recognize intents with the Speech service and LUIS.

- (instancetype _Nullable)initWithEndpoint:(NSString * _Nonnull)uri

Parameters

  • uri - the endpoint of the language understanding model.

Returns

an instance of language understanding model.

initWithAppId:

Initializes a language understanding model using an application id for the Language Understanding service.

- (instancetype _Nullable)initWithAppId:(NSString * _Nonnull)appId

Parameters

  • appId - the application id for the Language Understanding service.

Returns

an instance of language understanding model.

initWithSubscription:withAppId:andRegion:

Initializes a language understanding model using a subscription key, application id and region for the Language Understanding service.

- (instancetype _Nullable)initWithSubscription:(NSString * _Nonnull)key
    withAppId:(NSString * _Nonnull)appId andRegion:(NSString * _Nonnull)region

Parameters

  • key - the subscription key for the Language Understanding service.
  • appId - the application id for the Language Understanding service.
  • region - the region for the Language Understanding service (see the region page).

Returns

an instance of language understanding model.