Class IntentTrigger
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.intent.IntentTrigger
-
- All Implemented Interfaces:
AutoCloseable
public final class IntentTrigger extends Object implements AutoCloseable
Defines intent trigger object.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the intent trigger.static IntentTriggerfromModel(SafeHandle modelHandle)Creates an instance of a intent trigger from LanguageUnderstandingModel.static IntentTriggerfromModel(SafeHandle modelHandle, String intentName)Creates an instance of a intent trigger from LanguageUnderstandingModel.static IntentTriggerfromPhrase(String simplePhrase)Creates an instance of a intent trigger from simple phrase.SafeHandlegetImpl()INTERNAL
-
-
-
Method Detail
-
fromPhrase
public static IntentTrigger fromPhrase(String simplePhrase)
Creates an instance of a intent trigger from simple phrase.- Parameters:
simplePhrase- The simple phrase.- Returns:
- A IntentTrigger instance.
-
fromModel
public static IntentTrigger fromModel(SafeHandle modelHandle)
Creates an instance of a intent trigger from LanguageUnderstandingModel.- Parameters:
modelHandle- The model handle.- Returns:
- A IntentTrigger instance.
-
fromModel
public static IntentTrigger fromModel(SafeHandle modelHandle, String intentName)
Creates an instance of a intent trigger from LanguageUnderstandingModel.- Parameters:
modelHandle- The model handle.intentName- The intent name.- Returns:
- A IntentTrigger instance.
-
close
public void close()
Closes the intent trigger.- Specified by:
closein interfaceAutoCloseable
-
getImpl
public SafeHandle getImpl()
INTERNAL- Returns:
- a handle to the Trigger
-
-