AI-102: Designing and Implementing a Microsoft Azure AI Solution

Language Understanding Templates

Question

You use Natural Language Understanding in your bot.

You create a language understanding template in a file format that intents and utterances are mapped.

You use this file format to test your bot locally using Bot Framework CLI.

To test your model using Bot Framework CLI command “bf luis:test”, which supported file format will you provide as input source.

(select one answer choice)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer: A.

Option A is correct because .lu file format and .json file format are supported as input file formats for testing locally using Bot Framework CLI.

Here is a quick sample of the .lu file format:

<pre class="brush:java;">****************************************************

> Use ">" to create a comment in your .lu files.

> Use multiple comment ">" characters to define outlining.

> sections in the file to help you organize the content.

>> Primary intents.

# Greeting.

- Hi.

- Hello.

- Good morning.

>> Secondary intents.

# CheckWeather.

- What's the weather in London next week?

****************************************************

</pre>

Option B is incorrect because .lg file describes language generation templates with entity references and their composition.

Option C is incorrect because .qna files contain Markdown-like text based definitions for QnA Maker.

Option D is incorrect because dialogs provide bot functionality and have many components such as source code, business logic and training data.

Reference:

To learn more about .lu file format in bot framework, use the link given below:

The correct answer is A. .lu.

In this scenario, we are using Natural Language Understanding (NLU) in our bot, and we have created a language understanding template that maps intents and utterances in a file format. The Bot Framework CLI command "bf luis:test" is used to test the model locally.

The file format that we should provide as an input source to this command is .lu. This is because .lu (Language Understanding) is the supported file format for the language understanding template that we have created.

.LG (Language Generation) is another file format that is used to generate dynamic responses in a bot. .QNA (Question and Answer) is a file format used to store and manage questions and their corresponding answers in a knowledge base. .Dialog is not a file format, but rather a type of component in the Bot Framework that defines the flow of a conversation between a user and a bot.

Therefore, the correct answer is A. .lu.