Class WordAlternativeResult
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.speech_to_text.v1.model.WordAlternativeResult
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class WordAlternativeResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
An alternative hypothesis for a word from speech recognition results.
-
Constructor Summary
Constructors Constructor Description WordAlternativeResult()
-
Method Summary
Modifier and Type Method Description Double
getConfidence()
Gets the confidence.String
getWord()
Gets the word.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
WordAlternativeResult
public WordAlternativeResult()
-
-
Method Details
-
getConfidence
Gets the confidence.A confidence score for the word alternative hypothesis in the range of 0.0 to 1.0.
- Returns:
- the confidence
-
getWord
Gets the word.An alternative hypothesis for a word from the input audio.
- Returns:
- the word
-