IntentRecognitionResult Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. RecognitionResult - com.
microsoft. cognitiveservices. speech. SpeechRecognitionResult - com.
microsoft. cognitiveservices. speech. intent. IntentRecognitionResult
- com.
- com.
- com.
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
Method Details
close
public void close()
Explicitly frees any external resource attached to the object
Overrides:
IntentRecognitionResult.close()getEntities
public Dictionary
Gets the entities found in the utterance. This does not currently support LUIS entities.
Returns:
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:
toString
public String toString()
Returns a String that represents the intent recognition result.
Overrides:
IntentRecognitionResult.toString()Returns:
Applies to
Azure SDK for Java