Class Warning
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Warning
extends com.ibm.cloud.sdk.core.service.model.GenericModel
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Warning.WarningId
The identifier of the warning message. -
Constructor Summary
Constructors Constructor Description Warning()
-
Method Summary
Modifier and Type Method Description String
getMessage()
Gets the message.String
getWarningId()
Gets the warningId.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
Warning
public Warning()
-
-
Method Details
-
getWarningId
Gets the warningId.The identifier of the warning message.
- Returns:
- the warningId
-
getMessage
Gets the message.The message associated with the `warning_id`: * `WORD_COUNT_MESSAGE`: "There were {number} words in the input. We need a minimum of 600, preferably 1,200 or more, to compute statistically significant estimates." * `JSON_AS_TEXT`: "Request input was processed as text/plain as indicated, however detected a JSON input. Did you mean application/json?" * `CONTENT_TRUNCATED`: "For maximum accuracy while also optimizing processing time, only the first 250KB of input text (excluding markup) was analyzed. Accuracy levels off at approximately 3,000 words so this did not affect the accuracy of the profile." * `PARTIAL_TEXT_USED`, "The text provided to compute the profile was trimmed for performance reasons. This action does not affect the accuracy of the output, as not all of the input text was required." Applies only when Arabic input text exceeds a threshold at which additional words do not contribute to the accuracy of the profile.
- Returns:
- the message
-