LUIS中的问题? [英] Issues in LUIS?

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

问题描述

1)在模式中, 我无法添加超过3个参数,我收到此错误"不完整表达式"




2)在模式中,我们是否可以指定可选文本,例如"I"想要[text] {entity}"这样用户就可以输入"到"之间的任何内容。和{entity}?可以在不使用正则表达式
实体的情况下添加此功能(因为我不希望LUIS将每个单词提取为实体)

3)  在模式中,我不能为单词制作复数选项,例如"如何联系供应商[s]"。当用户键入"如何联系供应商"时不起作用。  图片

3)  In pattern, I cannot make the plural option for a word, e.g "How to contact the supplier[s]" doesn't work when the user types in "How to contact the suppliers".  Picture

推荐答案

1)是的,在当前的模式实现中,你只能添加3个参数或表达式。

1) Yes, in the current implementation of patterns you can only add 3 arguments or expressions.

2)我尝试使用[]添加可选文本并且它与可选项匹配文本但[]中的内容应与您添加的模式匹配。因此,您可以添加多个模式并检查它是否有效。使用方括号,[],
的可选语法使这个可选文本很容易添加到模板话语中,并且可以嵌套到第二级,[[]],并包含实体或文本。

2) I tried adding optional text using [] and it does match the optional text but the content in [] should match the pattern that you add. So, you can add multiple patterns and check if it works. The use of the optional syntax of square brackets, [], makes this optional text easy to add to the template utterance and can be nested up to a second level, [[]], and include entities or text.

示例:我添加以下内容:

Example: I add the following:

在所有三种测试情况中,意图与输入的嵌套模式匹配。通过这种方式,您可以避免将它们添加为实体。 

In all three cases of testing the intent is matched with the nested pattern that is entered. This way you can avoid adding them as entities. 

3)为此,我使用了嵌套[],它确实适用于所有情况。这是我添加的嵌套模式的屏幕截图,我为三个话语做的测试检测到我添加的模式。

3) For this I used nested [] and it does work in all the cases. Here is a screen shot of nested pattern that i added and the testing i did for the three utterances detected the pattern that I added.

我希望这会有所帮助!!

I hope this helps!!


这篇关于LUIS中的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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