【问题标题】:How to set priority in Microsoft Luis Patterns?如何在 Microsoft Luis 模式中设置优先级?
【发布时间】:2020-01-16 13:23:29
【问题描述】:

我正在使用模式识别来捕捉大小可变的实体。这是我试图抓住的情况

1- {entity1} (has| had| have) [the] {entity2}

2.1- {entity1} (has| had| have) the {entity2}

2.2-  {entity1} (has| had| have) {entity2}

我同时尝试了 1 模式或 2.1 和 2.2。 问题是当我输入:“人有属性”

entity2 被标记为“属性”,而不仅仅是“属性” 有没有办法标记优先级或解决这个问题?

对不起英文错误,我希望问题足够清楚。

【问题讨论】:

    标签: azure-language-understanding


    【解决方案1】:

    您无法在 LUIS 模式中设置优先级。但是,鉴于上述情况,实体被错误地提取,您可能希望使用explicit lists。您可以通过authoring API 创建一个显式列表,以在以下情况下允许例外:

    • 您的模式包含 Pattern.any
    • 当该模式语法允许根据话语提取不正确的实体时。

    此外,请务必参考 LUIS 应用的最佳做法 (https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-concept-best-practices#do-and-dont),以确保您的应用以更高的准确性运行。

    希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-09
      • 1970-01-01
      • 2021-03-18
      • 1970-01-01
      • 1970-01-01
      • 2021-07-25
      相关资源
      最近更新 更多