短语列表和列表实体之间的区别?

Difference between Phrase lists and list entities?

我已经开始使用 Microsoft 机器人框架和 LUIS。 我无法理解短语列表和列表实体之间的区别? 你能帮助我吗?例子会很棒。 谢谢

什么是列表实体

文档中的定义here,我突出了要点

List entities represent a fixed set of related words in your system. Each list entity may have one or more forms. They aren't machine learned, and are best used for a known set of variations on ways to represent the same concept. List entities are not labeled in utterances or trained by the system.

A list entity is an explicitly specified list of values. Unlike other entity types, LUIS does not discover additional values for list entities during training. Therefore, each list entity forms a closed set.

If there is more than one list entity with the same value, each entity is returned in the endpoint query.

什么是短语列表功能?

文档中的定义 here:

A phrase list includes a group of values (words or phrases) that belong to the same class and must be treated similarly (for example, names of cities or products). What LUIS learns about one of them is automatically applied to the others as well. This is not a white list of matched words.

何时使用短语列表而不是列表实体

我认为最好的答案是(仍在文档中,here):

  • 当您使用 短语列表 时,LUIS 仍然可以考虑上下文并进行概括以识别与以下内容相似但不完全匹配的项目列表中的项目。 如果您需要 LUIS 应用能够概括和识别类别中的新项目,最好使用短语列表

  • 相比之下,列表实体 明确定义实体可以采用的每个值,并且只标识完全匹配的值。 列表实体可能适用于实体的所有实例都已知且不经常更改的应用程序,例如餐厅菜单上不经常更改的食品。在您希望能够识别实体的新实例的系统中,例如应识别新联系人姓名的会议安排程序或应识别新产品的库存应用程序,最好使用另一种类型的实体和然后使用短语列表功能帮助指导 LUIS 识别实体示例。