LUIS封闭列表实体 [英] LUIS closed list entities

查看:52
本文介绍了LUIS封闭列表实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到与封闭列表实体相关的任何文档或示例.有人可以举一个使用封闭列表实体的C#示例吗?如果有用,还可以提供简短的解释吗?

I cannot find any documentation or example related to closed list entities. Can someone give a C# example of using closed list entities? Also can you provide a brief explanation when they are useful, please?

推荐答案

此处是所有实体类型.这是 API参考的链接潜在用例的好例子.

Here is a link to the new documentation for List Entities. This next link is towards a quick overview of all entity types. This is a link to the API reference that has a good example of a potential use case.

关于列表实体有几件事要了解;它们不是机器学习的,也不会计入您的30个实体的总限制中.它们有一个单独的限制,一个LUIS模型最多可以包含50个列表实体,每个列表实体将包含20,000个项目.

There are a few things to know about List Entities; they're not machine learned, and they're not counted towards your total limit of 30 entities. They have a separate limit, a LUIS model can have up to 50 list entities, each of which will take 20,000 items.

由于它们不是机器学习的,因此通过正则表达式将它们合并到LUIS模型中.因此,您无需为列表实体提供训练内容.

Since they're not machine learned, they're incorporated into the LUIS model through regex. Thus you don't need to provide training utterances for list entities.

回顾一下API参考的示例案例,它显示了一个实体如何具有多个同义词.例如. WA和CA分别表示华盛顿和加利福尼亚.但是,加利福尼亚州也是加利福尼亚的简称. 加利福尼亚共和国也可以用作加利福尼亚的同义词. (毕竟它是在状态标志上的.)

Touching back on the API reference's example case, it shows how an entity can have multiple synonyms. E.g. WA and CA mean Washington and California respectively. However, Calif. is also short for California. California Republic could also be used as a synonym for California. (It is on the state flag after all.)

列表实体提高了LUIS模型的准确性,因为作为开发人员,您提供了(可能)不常用的实体同义词.

A List Entity improves the accuracy of your LUIS model because as a developer you've provided (potentially) not normally used synonyms of entities.

使用列表实体时,您将以与C#(或Node)中任何其他实体相同的方式使用它.您只需要进一步剖析以提取所需内容即可.

When using a List Entity, you would use it much in the same fashion as you would any other entity in C# (or Node). You would just need to parse down a little further to extract what you're looking for.

这是LUIS响应中列表实体的外观示例.

Here's an example of what a List Entity would look like in a response from LUIS.

{
    "entity": "ice cream",
    "type": "Desserts",
    "startIndex": 12,
    "endIndex": 20,
    "resolution": {
        "values": [
            "FrozenDesserts"
        ]
    }
}

列表实体的名称为'Desserts',子列表的名称为'FrozenDesserts'.在 API参考就是'California',这就是我们要寻找的'canonicalForm'.

The List Entity's name is 'Desserts', and the name of the sub-list is 'FrozenDesserts'. In the example from the API reference, 'FrozenDesserts' would be 'California' which is the 'canonicalForm' that we're looking for.

这篇关于LUIS封闭列表实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆