表示意向触发器。
成员
~IntentTrigger
语法:public inline virtual ~IntentTrigger ( );
虚拟析构函数。
IntentTrigger
语法:public inline explicit IntentTrigger ( SPXTRIGGERHANDLE htrigger );
内部构造函数。 使用提供的句柄创建新实例。
参数
-
htrigger触发器句柄。
运算符 SPXTRIGGERHANDLE
语法:public inline explicit operator SPXTRIGGERHANDLE ( );
内部。 显式转换运算符。
退货
句柄。
来自
语法:public inline static std::shared_ptr< IntentTrigger > From ( const std::string & simplePhrase );
使用指定的短语创建意向触发器。
参数
-
simplePhrase要为其创建意向触发器的简单短语。
退货
指向意向触发器的共享指针。
来自
语法:public inline static std::shared_ptr< IntentTrigger > From ( std::shared_ptr< LanguageUnderstandingModel > model );
使用指定的 LanguageUnderstandingModel 创建意向触发器。
参数
-
modelLanguageUnderstandingModel 创建意向触发器。
退货
指向意向触发器的共享指针。
来自
语法:public inline static std::shared_ptr< IntentTrigger > From ( std::shared_ptr< LanguageUnderstandingModel > model , const std::string & intentName );
使用指定的 LanguageUnderstandingModel 和意向名称创建意向触发器。
参数
modelLanguageUnderstandingModel 创建意向触发器。intentName要为其创建意向触发器的意向名称。
退货
指向意向触发器的共享指针。