Search code examples
botframeworkazure-language-understanding

How do you train LUIS to recognize general nouns?


I have a bot that was initially based on the Zummer example. I would like the Search intent to pick up practically any topic you could search for as an entity.

I tried training using several example phrases but it became apparent that although the intent is correctly detected, the ArticleTopic entity only picks up the specific nouns provided as examples.

I also tried creating a regex entity using .* but this matches every complete utterance.

Is there a general approach to tell LUIS to capture some part of an utterance regardless of its contents?

Examples of what I would like to support: Search for *, What is *, What are *, Tell me about *, etc.


Solution

  • You should use patterns and the entity which is specific to pattern which is Pattern.any. This entity return all the text which is where the entity has been marked.

    It should give something like that :

    • Search for Entity
    • What is Entity
    • What are Entity