Class WordError
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.speech_to_text.v1.model.WordError
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class WordError
extends com.ibm.cloud.sdk.core.service.model.GenericModel
An error associated with a word from a custom language model.
-
Constructor Summary
Constructors Constructor Description WordError()
-
Method Summary
Modifier and Type Method Description String
getElement()
Gets the element.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
WordError
public WordError()
-
-
Method Details
-
getElement
Gets the element.A key-value pair that describes an error associated with the definition of a word in the words resource. The pair has the format `"element": "message"`, where `element` is the aspect of the definition that caused the problem and `message` describes the problem. The following example describes a problem with one of the word's sounds-like definitions: `"{sounds_like_string}": "Numbers are not allowed in sounds-like. You can try for example '{suggested_string}'."`.
- Returns:
- the element
-