Skip to Content

AI-900: How to use Text Analytics service to detect language in documents

Learn how to use the Text Analytics service to detect the language in which documents are written and what response parameters the service returns.

Table of Contents

Question

You are planning on using the Text Analytics service to detect the language in which documents are written. What response parameters will the service detect?

A. The language name
B. An array with all the paragraphs in which the predominant language was not identified, in case a mix of multiple languages exists
C. The ISO 6391 language code
D. A score indicating a level of confidence in the language detection

Answer

A. The language name
C. The ISO 6391 language code

Explanation

The service will detect the language name, the ISO 6391 language code, and a score indicating a level of confidence in the language detection.

The correct answer is A and C. The Text Analytics service can detect the language in which documents are written and return the following response parameters:

  • The language name: This is the name of the language in English, such as “English” or “Spanish”.
  • The ISO 6391 language code: This is the two-letter code that represents the language, such as “en” for English or “es” for Spanish.

The service does not return an array with all the paragraphs in which the predominant language was not identified, in case a mix of multiple languages exists. This is because the service only detects the dominant language for each document, not for each paragraph. If a document contains multiple languages, the service will return the language with the highest score, which indicates the level of confidence in the language detection. The score is a numeric value between 0 and 1, where values close to 1 indicate 100% certainty that the identified language is true. The score is another response parameter that the service returns, but it is not mentioned in the options.

Microsoft Azure AI Fundamentals AI-900 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft Azure AI Fundamentals AI-900 exam and earn Microsoft Azure AI Fundamentals AI-900 certification.

Microsoft Azure AI Fundamentals AI-900 certification exam practice question and answer (Q&A) dump