Compartir a través de


IntentRecognitionResult Class

public final class IntentRecognitionResult
extends SpeechRecognitionResult

Defines result of intent recognition.

Method Summary

Modifier and Type Method and Description
void close()

Explicitly frees any external resource attached to the object

java.util.Dictionary<java.lang.String,java.lang.String> getEntities()

Gets the entities found in the utterance.

java.lang.String getIntentId()

A String that represents the intent identifier being recognized.

java.lang.String toString()

Returns a String that represents the intent recognition result.

Methods inherited from RecognitionResult

Methods inherited from SpeechRecognitionResult

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.wait java.lang.Object.wait java.lang.Object.wait

Method Details

close

public void close()

Explicitly frees any external resource attached to the object

Overrides:

IntentRecognitionResult.close()

getEntities

public Dictionary getEntities()

Gets the entities found in the utterance. This does not currently support LUIS entities.

Returns:

A Dictionary containing the entities extracted. The key will be the entity name.

getIntentId

public String getIntentId()

A String that represents the intent identifier being recognized.

Returns:

A String that represents the intent identifier being recognized.

toString

public String toString()

Returns a String that represents the intent recognition result.

Overrides:

IntentRecognitionResult.toString()

Returns:

A String that represents the intent recognition result.

Applies to