AI-102 Question 232
Single answerYou are designing a text translation feature for a multilingual e-commerce website using Azure AI Translator. The feature should translate product descriptions from English to multiple target languages, including languages like Spanish, French, and Japanese. Additionally, the system must return the confidence score of the translation for quality assurance. Which Azure AI Translator API endpoint should you use to meet these requirements?
- A
Translate endpoint with 'includeAlignment=true' in the request
- B
Translate endpoint with 'includeSentenceLength=true' in the request
- C
Translate endpoint with 'includeScore=true' in the request
- D
Break Sentence endpoint to analyze text structure before translation
Show answer and explanation
Correct answer: C
Explanation
To meet the requirement of translating text and returning a confidence score for quality assurance, you must use the Translate endpoint with the 'includeScore=true' parameter. This parameter ensures that the API returns the confidence score for each translation, which is essential for assessing the quality of the translations.
- A. Incorrect.
The 'includeAlignment=true' parameter provides alignment information for words between the source and target text, but does not return the confidence score.
- B. Incorrect.
The 'includeSentenceLength=true' parameter is used to return the sentence lengths in the source and target text, which is unrelated to the confidence score requirement.
- C. Correct.
The 'includeScore=true' parameter is specifically used to include the confidence score for the translation, which meets the requirement for quality assurance.
- D. Incorrect.
The Break Sentence endpoint is used to segment text into sentences for translation but does not perform the translation itself or return confidence scores.