public class DetectedLanguageLowConfidenceException extends AmazonServiceException
The confidence that Amazon Comprehend accurately detected the source language is low. If a low confidence level is acceptable for your application, you can use the language in the exception to call Amazon Translate again. For more information, see the DetectDominantLanguage operation in the Amazon Comprehend Developer Guide.
AmazonServiceException.ErrorType
Constructor and Description |
---|
DetectedLanguageLowConfidenceException(java.lang.String message)
Constructs a new DetectedLanguageLowConfidenceException with the
specified error message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDetectedLanguageCode()
The language code of the auto-detected language from Amazon Comprehend.
|
void |
setDetectedLanguageCode(java.lang.String detectedLanguageCode)
The language code of the auto-detected language from Amazon Comprehend.
|
getErrorCode, getErrorMessage, getErrorType, getMessage, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRequestId, setServiceName, setStatusCode
isRetryable
public DetectedLanguageLowConfidenceException(java.lang.String message)
message
- Describes the error encountered.public java.lang.String getDetectedLanguageCode()
The language code of the auto-detected language from Amazon Comprehend.
Constraints:
Length: 2 - 5
The language code of the auto-detected language from Amazon Comprehend.
public void setDetectedLanguageCode(java.lang.String detectedLanguageCode)
The language code of the auto-detected language from Amazon Comprehend.
Constraints:
Length: 2 - 5
detectedLanguageCode
- The language code of the auto-detected language from Amazon Comprehend.
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.