Use AI Model in Power Apps

A language detection AI model is a machine learning model designed to automatically identify the language of a given text. These models analyze textual input and predict the language in which the text is written. Language detection is a crucial component in multilingual systems, enabling appropriate responses or further processing like translation, sentiment analysis, or text classification.

Requirements

  • Access to a Microsoft Power Platform environment with a database.
  • AI Builder license (trial or paid).

Key Features of a Language Detection Model

  1. Input: The model takes in a snippet or block of text (ranging from a few characters to entire documents) and analyzes its structure, grammar, and word usage.
  2. Output: The model outputs a prediction of the language the text is written in, typically represented as a language code (e.g., "en" for English, "de" for German, "es" for Spanish). Some models provide a confidence score along with the prediction, indicating the model's certainty in its output.

Step 1. Create a canvas blank app by clicking on https://make.powerapps.com/

Step 2. Select Data > Add data > AI models.

Add data

Step 3. Search for and select the Language detection AI model.

Language detection 

Step 4. Select + from the left pane, and then select Text input control. Again, select + and add the Text label. Rename the label to Language.

Text input control

Step 5. Add another text label next to the "Language" label.

Language label

Step 6. Select the text label added in the previous step. Enter the following formula in the formula bar for the text label's Text property.

Here my Textbox name is TextInput2_1, that's why I selected text from that.

'Language detection'.Predict(TextInput1.Text).Language

Textbox name

As soon as I add another text into the textbox, the label will display the language of that text.

Textbox

Limitations

  1. Detecting language in very short pieces of text, such as a single word or short phrase, or a number, can be difficult because many languages share similar words.
    Detecting language
  2. The mix of languages in one sentence might be difficult to detect.
    Mix of languages

Conclusion

Language detection AI models are essential in a multilingual world, enabling systems to process, analyze, and respond to text in various languages.

We will see the Text Translation AI model in the next article.


Similar Articles