如何在 Microsoft Luis Patterns 中设置优先级?
How to set priority in Microsoft Luis Patterns?
我正在使用模式识别来捕获大小可变的实体。这是我试图抓住的情况
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。
问题是当我输入:"Person have the properties"
entity2 被标记为 "the properties" 而不仅仅是 "properties"
有没有办法标记优先级或解决此问题?
抱歉出现英文错误,希望问题足够清楚。
无法在 LUIS 模式中设置优先级。但是,鉴于上述情况,实体提取不正确,您可能希望在以下情况下使用 explicit lists. You can create an explicit list via the authoring API 允许例外情况:
- 您的模式包含 Pattern.any
- 当该模式语法允许根据话语提取不正确的实体时。
此外,请务必参考 LUIS 应用的最佳做法 (https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-concept-best-practices#do-and-dont),以确保您的应用以更高的准确性运行。
希望对您有所帮助。
我正在使用模式识别来捕获大小可变的实体。这是我试图抓住的情况
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。 问题是当我输入:"Person have the properties"
entity2 被标记为 "the properties" 而不仅仅是 "properties" 有没有办法标记优先级或解决此问题?
抱歉出现英文错误,希望问题足够清楚。
无法在 LUIS 模式中设置优先级。但是,鉴于上述情况,实体提取不正确,您可能希望在以下情况下使用 explicit lists. You can create an explicit list via the authoring API 允许例外情况:
- 您的模式包含 Pattern.any
- 当该模式语法允许根据话语提取不正确的实体时。
此外,请务必参考 LUIS 应用的最佳做法 (https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-concept-best-practices#do-and-dont),以确保您的应用以更高的准确性运行。
希望对您有所帮助。