在 LUIS 门户中创建新的 LUIS 应用Create a new LUIS app in the LUIS portal

可通过多种方法创建 LUIS 应用。There are a couple of ways to create a LUIS app. 可以在 LUIS 门户中创建 LUIS 应用,也可以通过 LUIS 创作 API 进行创建。You can create a LUIS app in the LUIS portal, or through the LUIS authoring APIs.

使用 LUIS 门户Using the LUIS portal

可以通过以下几种方式在门户中创建新应用:You can create a new app in the portal in several ways:

  • 从一个空应用开始,创建意向、表述和实体。Start with an empty app and create intents, utterances, and entities.
  • 从一个空应用开始,添加预生成的域Start with an empty app and add a prebuilt domain.
  • 从已包含意向、言语和实体的 .lu.json 文件导入 LUIS 应用。Import a LUIS app from a .lu or .json file that already contains intents, utterances, and entities.

使用创作 APIUsing the authoring APIs

可以通过以下几种方式使用创作 API 创建新应用:You can create a new app with the authoring APIs in a couple of ways:

登录到 LUIS 门户Sign in to LUIS portal

LUIS 的新用户需要执行此过程:A new user to LUIS needs to follow this procedure:

  1. 登录 LUIS 门户,选择你所在的国家/地区,然后同意使用条款。Sign in to the LUIS portal, select your country/region and agree to the terms of use. 如果看到“我的应用”,则 LUIS 资源已存在,你应该跳过此过程,开始创建应用。If you see My Apps instead, a LUIS resource already exists and you should skip ahead to create an app. 有两种注册方式:You will have two options signing up:

    • 使用 Azure 资源(推荐)- 可将 LUIS 帐户与新的或现有的 Azure 创作资源进行关联。Using an Azure resource (recommended) - allows you to link your LUIS account with a new or existing Azure Authoring resource. 这与已迁移注册的效果一样。This is equivalent to signing up already migrated. 稍后无需再执行迁移过程You won't need to go through the migration process later on.

    • 使用试用密钥。Using a trial key. 这使你能够使用无需设置的试用资源登录到 LUIS。This allows you to sign in to LUIS with a trial resource that you don't need to set up. 如果选择此方式,则最终需要迁移帐户并将应用程序与创作资源关联。If you choose this option, you will eventually be required to migrate your account and link your applications to an authoring resource.

  2. 在出现的“选择创作”窗口中,找到你的 Azure 订阅和 LUIS 创作资源。In the Choose an authoring window that appears, find your Azure subscription, and LUIS authoring resource. 如果没有资源,可新建一个。If you don't have a resource, you can create a new one.

    选择语言理解创作资源的类型。

    创建新的创作资源时,请提供以下信息:When you create a new authoring resource, provide the following information:

    • 租户名称 - 与 Azure 订阅关联的租户。Tenant name - the tenant your Azure subscription is associated with.
    • Azure 订阅名称 - 将对资源计费的订阅。Azure subscription name - the subscription that will be billed for the resource.
    • Azure 资源组名称 - 你选择或创建的自定义资源组名称。Azure resource group name - a custom resource group name you choose or create. 使用资源组可将 Azure 资源分组,以便进行访问和管理。Resource groups allow you to group Azure resources for access and management.
    • Azure 资源名称 - 你选择的自定义名称,用作创作和预测终结点查询的 URL 的一部分。Azure resource name - a custom name you choose, used as part of the URL for your authoring and prediction endpoint queries.
    • 定价层 - 定价层确定每秒和每月的最大事务数。Pricing tier - the pricing tier determines the maximum transaction per second and month.

在 LUIS 中创建新应用Create new app in LUIS

  1. 在“我的应用”页上,依次选择“订阅”、“创作资源”和“+ 创建”。On My Apps page, select your Subscription, and Authoring resource then + Create.

LUIS 应用列表LUIS apps list

  1. 在对话框中,输入应用程序的名称,例如“Pizza Tutorial”。In the dialog box, enter the name of your application, such as Pizza Tutorial.

    “创建新应用”对话框

  2. 选择应用程序区域性,然后选择“完成”。Choose your application culture, and then select Done. 此时,“说明”和“预测资源”是可选项。The description and prediction resource are optional at this point. 以后随时可以在门户的“管理”部分进行设置。You can set then at any time in the Manage section of the portal.

    备注

    创建应用程序后将无法更改区域性。The culture cannot be changed once the application is created.

    创建应用后,LUIS 门户会显示“意向”列表,其中包含已为你创建的 None 意向。After the app is created, the LUIS portal shows the Intents list with the None intent already created for you. 现在,你已有一个空应用。You now have an empty app.

    意向列表,其中包含在没有示例言语的情况下创建的 None 意向。Intents list with None intent created with no example utterances.

“我的应用”页上提供的其他操作Other actions available on My Apps page

上下文工具栏提供其他操作:The context toolbar provides other actions:

  • 重命名应用Rename app
  • 使用 .lu.json 从文件导入Import from file using .lu or .json
  • 将应用导出为 .lu(适用于 LUDown)、.json.zip(适用于 LUIS 容器Export app as .lu (for LUDown), .json, or .zip (for LUIS container)
  • 导入容器终结点日志以查看终结点言语Import container endpoint logs, to review endpoint utterances
  • 将终结点日志导出为 .csv 以进行脱机分析Export endpoint logs, as a .csv, for offline analysis
  • 删除应用Delete app

后续步骤Next steps

如果应用设计包含意向检测,请创建新意向并添加示例言语。If your app design includes intent detection, create new intents, and add example utterances. 如果应用设计仅是数据提取,则将示例言语添加到“None”意向,然后创建实体,并使用这些实体标记示例言语。If your app design is only data extraction, add example utterances to the None intent, then create entities, and label the example utterances with those entities.