4 Recognizing Entities

 

This chapter covers

  • Recognizing the parameters in queries with entity recognition
  • Working with entity recognition through LUIS NLP service
  • Understanding and applying the different entity categories in LUIS
  • Integrating LUIS into our ‘Stay Fit’ chatbot code for entity recognition

In the last chapter, we learnt about intent recognition and different methods we can use to recognize intents. However, there was a big problem with the approach. To understand this problem, let’s take the example of queries inside “Get Workout Info”. As a reminder, the sample queries I introduced were: “how to do a pushup?”, “how do I do a pushup?”, “what is the right way to do a pushup?”, “How can I do pushups correctly?”, “what is the correct way to do a pushup?”.

4.1   Understanding and Using Entities in our Chatbot

4.1.1   Intents vs Entities

4.1.2   Entity Recognition

4.2   Using LUIS for Entity Recognition

4.2.1   Defining our entities

4.2.2   Testing the Entity Recognition service

4.2.3   Different Entity types in LUIS

4.3   Using Entities inside our chatbot

4.3.1   Testing our bot

4.4   Summary