• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • Crypto Currency
  • Technology
  • Contact
NEO Share

NEO Share

Sharing The Latest Tech News

  • Home
  • Artificial Intelligence
  • Machine Learning
  • Computers
  • Mobile
  • Crypto Currency

Enrich Chatbot Entities With Patterns, Roles & Groups Using Rasa

January 26, 2021 by systems

…And Capture Concepts In User Input

Cobus Greyling

A conversational interface is an invitation you extend to the user to input their data in an unstructured and conversational manner.

Typical example of user unstructured input not being recognized and the chatbot enforcing predetermined structure.

It is imperative that the digital assistant is able to take the unstructured input from the user and ideally structure the input correctly on the first pass.

The less ideal situation is where the chatbot prompts for information already volunteered by the user.

Hence, forcing the user to input data in a structure acceptable by the chatbot. Keeping in mind, a structure not visible to the user.

The conversation to the left is a classic example of how, only the basic intent of the user is detected by the chatbot on the first pass.

The entities are disregarded and asked for, again; one at a time.

The way to approach this, is to handle it, as we do in human-to-human conversation.

City is an entity, but there are actually two types of cities, the from/departure city and the to/destination city. Hence the entity of city has two roles. And these two roles are arranged in a certain pattern including the date and possibly the mode of travel.

This is very close to how we as humans extract entities; detecting the patterns and identifying the roles.

Image for post
Within Intents entities need to be defined. Entities can further be defined with roles and patterns.

The basic premise is to create roles for an entity, and then establish patterns in which those roles might be used.

These patterns then serves as a guide for the Conversational AI platform to detect patterns in user utterances. And subsequently useful conversational data.

Let’s have a look at how Roles and Entity Patterns can be implemented by using a simple banking example project.

So, different roles can be seen as subsets or types of the entity Cities.

Multiple roles can be added to an entity.

Contextual information is maintained for an entity in this way. We are also going to combine the roles defined for the entity with a pattern.

Filed Under: Machine Learning

Primary Sidebar

Stay Ahead: The Latest Tech News and Innovations

Cryptocurrency Market Updates: What’s Happening Now

Emerging Trends in Artificial Intelligence: What to Watch For

Top Cloud Computing Services to Secure Your Data

The Future of Mobile Technology: Recent Advancements and Predictions

Footer

  • Privacy Policy
  • Terms and Conditions

Copyright © 2025 NEO Share

Terms and Conditions - Privacy Policy