表示用于意向识别的语言理解模型。
成员
LanguageUnderstandingModel
语法:public inline explicit LanguageUnderstandingModel ( SPXLUMODELHANDLE hlumodel );
内部构造函数。 使用提供的句柄创建新实例。
参数
-
hlumodel语言理解模型句柄。
~LanguageUnderstandingModel
语法:public inline virtual ~LanguageUnderstandingModel ( );
虚拟析构函数。
运算符 SPXLUMODELHANDLE
语法:public inline explicit operator SPXLUMODELHANDLE ( ) const;
内部。 显式转换运算符。
退货
句柄。
GetModelId
语法:public inline virtual std::string GetModelId ( ) const;
返回此模型的 ID。
退货
一个表示此模型的 ID 的字符串。
GetModelType
语法:public inline LanguageUnderstandingModelType GetModelType ( ) const;
获取模型类型。
退货
表示模型类型的枚举。
FromEndpoint
语法:public inline static std::shared_ptr< LanguageUnderstandingModel > FromEndpoint ( const std::string & uri );
使用指定的终结点 URL 创建语言理解(LUIS)模型。
参数
-
uri语言理解模型的终结点 URL。
退货
指向语言理解模型的共享指针。
FromAppId
语法:public inline static std::shared_ptr< LanguageUnderstandingModel > FromAppId ( const std::string & appId );
使用指定的应用 ID 创建语言理解模型。
参数
-
appId表示语言理解服务的应用程序 ID 的字符串。
退货
指向语言理解模型的共享指针。
FromSubscription
语法:public inline static std::shared_ptr< LanguageUnderstandingModel > FromSubscription ( const std::string & subscriptionKey , const std::string & appId , const std::string & region );
使用指定的主机名、订阅密钥和应用程序 ID 创建语言理解模型。
参数
subscriptionKey表示语言理解服务的订阅密钥的字符串。appId表示语言理解服务的应用程序 ID 的字符串。region一个字符串,表示语言理解服务的区域(请参阅 区域页面)。
退货
指向语言理解模型的共享指针。
m_type
语法:protected LanguageUnderstandingModelType m_type;
LanguageUnderstandingModel
语法:protected inline LanguageUnderstandingModel ( LanguageUnderstandingModelType type );
要设置类型的基类的受保护构造函数。
参数
-
type语言理解模型类型。
LanguageUnderstandingModelType
语法:enum LanguageUnderstandingModelType;
| 价值观 | 描述 |
|---|---|
| PatternMatchingModel | |
| LanguageUnderstandingModel | |
| ConversationalLanguageUnderstandingModel |