LUIS-我们可以将短语列表用于实体类型列表中的新值吗 [英] LUIS - Can we use phrases list for new values in the entity type List

查看:66
本文介绍了LUIS-我们可以将短语列表用于实体类型列表中的新值吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建LUIS聊天机器人应用程序,用于提取有关公司的信息.例如

I'm creating LUIS chat bot app for extracting information regarding a company. For example

" Google公司的filed_name1是什么".

所以我目前正在使用列表实体"提取" filed_name1 ",因为公司的字段数量有限.

So I'm currently extracting "filed_name1" using "list entity" as the number of fields for a company are limited.

类似地,我正在使用 List实体提取公司名称.由于公司名称现在也受到限制.

Similarly I'm using List entity for extracting company name.As the company names are also limited as now.

现在我想处理将新公司名称添加到现有列表中的情况.

Now i want to handle scenario when a new company name gets added to existing list.

我尝试使用"短语列表" 来检查它是否可以处理新名称.但这不起作用.

I've tried using "Phrases list" to check if it can handle new names. But it's not working.

我已经创建了短语列表" companyNames ",其中给出了3个现有名称和一个新公司名称.

I've created phrase list "companyNames" given 3 existing names and one new company name.

现在,当我用发声测试时

Now when i test with the utterance

"公司new_company_name的field_name3是什么

这没有将 new_company_name 标识为实体.即使我在短语列表中提供了它,也提供了现有公司名称.

It's not identifying new_company_name as a entity. Even though I've provided it in phrases list along with existing company names.

注意:由于性能原因,我将List实体用于公司名称,而不是简单(ml)实体.实际上,公司名称的长度从10个字符到更多的50个字符.

Note: I'm using List entity for company names instead of simple (ml) entity due to performance reasons. In practicality company names length from 10 char to more 50 chars.

模式:公司 {CompanyName}

短语列表:Google,Apple,Oracle, Samsung(不在列表实体或语音中)

Phrases list: Google , Apple , Oracle , Samsung (not in the list entity or utterances)

表中的数据格式示例

一旦我用相同的模式训练了前3个公司名称.我正在使用新公司名称以下面的方式测试我的应用程序.

Once I've trained with first 3 company names with same pattern. I'm testing my app with below utterance with new company name.

三星公司的filed_name1是什么"

它能够将field_name1检测为一个实体,但在任何实体中均未标识三星.

It's able to detect field_name1 as an entity but Samsung is not identified in any entity.

推荐答案

现在我想处理新公司名称添加到的情况 现有列表.

Now i want to handle scenario when a new company name gets added to existing list.

我尝试使用短语列表"来检查它是否可以处理新名称. 但这不起作用.

I've tried using "Phrases list" to check if it can handle new names. But it's not working.

新的样式功能(使用 pattern.any ).

此功能有助于按照特定模式标记名词.您无需提供公司列表.

This feature helps in labeling the noun following a specific pattern. You need not provide the list of the companies.

创建意图

然后创建实体,并将其选择为pattern.any实体.

Then create the entities selecting them as pattern.any entity.

在图案"功能中添加图案的格式:

Add the format of pattern in the Pattern's feature:

培训应用程序.

这是测试结果,显示了如何处理案例而不提供示例.

This is the test result to show how it handles the case without providing examples.

因此,我目前正在使用列表实体"作为提取"filed_name1" 公司的字段数是有限的.

So I'm currently extracting "filed_name1" using "list entity" as the number of fields for a company are limited.

您仍然可以使用列表实体提取"field-name1".我只是提供了一个示例,以说明如果列表变长的话该如何处理.

You can still extract "field-name1" using list entity. I just provided an example to show how to handle the case if the list gets longer.

如果我们使用patter.any实体创建模式.无法区分公司名称和公司代码.我想知道为什么我创建的模式无济于事.

If we create a pattern using patter.any entity. It's not able to distinguish between company name and company code. I'm wondering why the pattern i've created isn't helping.

如果案件在处理公司名称的代码和名称上具有相同的模式,那么使用列表实体是您所要做的正确选择.模式的功能是首先触发实体这种情况就是失败的原因.

If the case is having the same pattern for handing both code and name for company name then using list entity is the right option as you are doing. The patterns feature work by firing entity first which in this case are the failure point.

希望这会有所帮助!

这篇关于LUIS-我们可以将短语列表用于实体类型列表中的新值吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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