类 Intent::LanguageUnderstandingModel
表示用于意向识别的语言理解模型。
成员
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 |