Class IntentRecognitionResult
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.RecognitionResult
-
- com.microsoft.cognitiveservices.speech.SpeechRecognitionResult
-
- com.microsoft.cognitiveservices.speech.intent.IntentRecognitionResult
-
- All Implemented Interfaces:
AutoCloseable
public final class IntentRecognitionResult extends SpeechRecognitionResult
Defines result of intent recognition.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Explicitly frees any external resource attached to the objectDictionary<String,String>getEntities()Gets the entities found in the utterance.StringgetIntentId()A String that represents the intent identifier being recognized.StringtoString()Returns a String that represents the intent recognition result.-
Methods inherited from class com.microsoft.cognitiveservices.speech.RecognitionResult
getDuration, getImpl, getOffset, getProperties, getReason, getResultId, getText
-
-
-
-
Method Detail
-
close
public void close()
Explicitly frees any external resource attached to the object- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classSpeechRecognitionResult
-
getEntities
public Dictionary<String,String> getEntities()
Gets the entities found in the utterance. This does not currently support LUIS entities.- Returns:
- A
Dictionarycontaining 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:
toStringin classSpeechRecognitionResult- Returns:
- A String that represents the intent recognition result.
-
-