如何在Dialogflow中设置更复杂的"IsList"参数 [英] How to setup a more complicated 'IsList' parameter in Dialogflow
问题描述
我之前曾问过这个问题:
请勿在实体中使用@ sys.any."
还有其他方法可以实现这一目标吗?
帮助/建议表示赞赏.
不要使用"sys.any"
-
创建一个名为"fruit-description"的自定义实体,并添加"small,Cavendish,green等"之类的值.
-
还添加了带有此新实体水果描述"的新语音之后训练代理.
I've asked this question previously:
How to setup a complicated 'IsList' parameter in Dialogflow
In there I had this example:
"I want 7 apples, 8 oranges and 12 bananas"
So by setting up a 'Developer Composite Entity' that looks like this:
@sys.cardinal:Amount @Fruits:Fruit
I was able to solve my problem.
In there I'm using the @sys.cardinal
system entity and my own custom @Fruits
entity, which has a bunch of fruits in it.
I'm now looking for a way to handle examples like this:
"I want green apples, small oranges and cavendish bananas"
I then tried to make a new 'Developer Composite Entity' as follows:
@sys.any:Description @Fruits:Fruit
Now I'm using the @sys.any
system entity instead of @sys.cardinal
, but then I get this error:
"Do not use @sys.any in entities."
Is there any other way I can achieve this?
Help / Advice appreciated.
Don't use "sys.any"
Create a custom entity named "fruit-description" and add values like "small,cavendish,green etc." as many as you expect and also tick the "Allow automated expansions" Checkbox ,so any unexpected property which you have not mentioned is likely to be detected as a property.
Also train agent after adding new utterances carrying this new entitiy "fruit-description".
这篇关于如何在Dialogflow中设置更复杂的"IsList"参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!