Skip to main content
Version: 2.1

ETranslateDetectedLanguageLowConfidenceException

Class in AWS.Translate

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.

Ancestors​

Properties​

DetectedLanguageCode​

property DetectedLanguageCode: string

Provides the detected language code associated with the low confidence.

If a low confidence is acceptable to your application, the DetectedLanguageCode can be used to retry the TranslateText request specifying DetectedLanguageCode as the SourceLanguageCode of the request.

Constructors​

Create​

constructor Create(const AMessage, ADetectedLanguageCode: string);

Constructor for ETranslateDetectedLanguageLowConfidenceException.

Parameters

NameDescription
AMessageSpecify the message of the exception.
ADetectedLanguageCodeSpecify a detected language code associated with the low confidence.