public class MessageOutputSpelling
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
originalText |
protected java.lang.String |
suggestedText |
protected java.lang.String |
text |
Constructor and Description |
---|
MessageOutputSpelling() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getOriginalText()
Gets the originalText.
|
java.lang.String |
getSuggestedText()
Gets the suggestedText.
|
java.lang.String |
getText()
Gets the text.
|
protected java.lang.String text
@SerializedName(value="original_text") protected java.lang.String originalText
@SerializedName(value="suggested_text") protected java.lang.String suggestedText
public java.lang.String getText()
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.
public java.lang.String getOriginalText()
The original user input text. This property is returned only if autocorrection is enabled and the user input was corrected.
public java.lang.String getSuggestedText()
Any suggested corrections of the input text. This property is returned only if spelling correction is enabled and autocorrection is disabled.