Aracılığıyla paylaş


IntentTrigger Class

  • java.lang.Object
    • com.microsoft.cognitiveservices.speech.intent.IntentTrigger

Implements

java.lang.AutoCloseable

public final class IntentTrigger
implements java.lang.AutoCloseable

Defines intent trigger object.

Method Summary

Modifier and Type Method and Description
void close()

Closes the intent trigger.

static IntentTrigger fromModel(SafeHandle modelHandle)

Creates an instance of a intent trigger from LanguageUnderstandingModel.

static IntentTrigger fromModel(SafeHandle modelHandle, String intentName)

Creates an instance of a intent trigger from LanguageUnderstandingModel.

static IntentTrigger fromPhrase(String simplePhrase)

Creates an instance of a intent trigger from simple phrase.

SafeHandle getImpl()

INTERNAL

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Method Details

close

public void close()

Closes the intent trigger.

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.

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.

getImpl

public SafeHandle getImpl()

INTERNAL

Returns:

a handle to the Trigger

Applies to