You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

训练LUIS:无短语列表时识别动态多词实体

How to Accurately Identify Dynamic Multi-Word Entities in LUIS

Got it, let's break down how to fix this tricky LUIS entity recognition problem you're dealing with. Dynamic, variable-length multi-word entities are definitely a challenge when phrase lists won't cut it, but here are actionable approaches to get LUIS to nail these:

  • Use Machine Learned Entities (the core solution)
    This is LUIS's built-in tool for handling flexible, context-dependent entities. Instead of relying on fixed phrases, define a machine learned entity, then label a variety of example utterances with your multi-word values (like customer engagement, empower your teams, enhance cross-department collaboration). LUIS will learn the contextual patterns around these entities—like what verbs usually precede them (improve, prioritize, focus on) or how they fit into sentence structure—rather than matching exact strings. For extra precision, you can add sub-entities or roles if your entities have nested structure, but even a basic machine learned entity will outperform phrase lists here when paired with diverse examples.

  • Leverage Patterns with Wildcards
    If your entities often appear in consistent sentence templates, create patterns that use wildcards to capture variable-length values. For example, if users frequently say things like "We need to {Entity}" or "Let's prioritize {Entity}", define a pattern like:
    We need to {BusinessInitiative:*}
    The :* wildcard tells LUIS to match any sequence of words as the BusinessInitiative entity in that context. Combine this with machine learned entities—patterns cover predictable sentence structures, while the machine learning model handles more free-form utterances. Just be careful not to make wildcards too broad (e.g., don't use a wildcard at the start of a pattern) to avoid false positives.

  • Use Phrase Lists for Contextual Clues (not entity values)
    You mentioned phrase lists won't work for dynamic entity values, but you can still use them to boost context awareness. Create a phrase list with words that commonly appear around your entities—like trigger verbs (empower, boost, streamline) or related nouns (initiative, goal, objective). LUIS uses these lists to weight contextual relevance, making it more likely to recognize that a multi-word sequence following these clues is your target entity. You don't need to include any actual entity values here—just the words that signal an entity is coming up.

  • Iterate with Active Learning & Batch Testing
    LUIS's active learning feature will flag utterances it's unsure about—take the time to manually label these with your correct multi-word entities. Additionally, run batch tests with a set of unseen utterances to identify cases where LUIS misses the mark, then add those labeled examples to your training set. The more diverse your training data (covering different entity lengths, sentence structures, and contexts), the better LUIS will get at recognizing your dynamic entities over time.

A quick pro tip: Avoid overlapping your target entity with other custom entities or pre-built entities in your model—this can confuse LUIS. Keep your entity definitions clear and focused on the specific type of multi-word values you're trying to capture.

内容的提问来源于stack exchange,提问作者RVRao

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 08:31:51