Class MessageOutputSpelling
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.assistant.v2.model.MessageOutputSpelling
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class MessageOutputSpelling
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Properties describing any spelling corrections in the user input that was received.
-
Constructor Summary
Constructors Constructor Description MessageOutputSpelling()
-
Method Summary
Modifier and Type Method Description String
getOriginalText()
Gets the originalText.String
getSuggestedText()
Gets the suggestedText.String
getText()
Gets the text.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
MessageOutputSpelling
public MessageOutputSpelling()
-
-
Method Details
-
getText
Gets the text.The user input text that was used to generate the response. If spelling autocorrection is enabled, this text reflects any spelling corrections that were applied.
- Returns:
- the text
-
getOriginalText
Gets the originalText.The original user input text. This property is returned only if autocorrection is enabled and the user input was corrected.
- Returns:
- the originalText
-
getSuggestedText
Gets the suggestedText.Any suggested corrections of the input text. This property is returned only if spelling correction is enabled and autocorrection is disabled.
- Returns:
- the suggestedText
-