Image Anomaly Detection using Autoencoders

This article is an experimental work to check if Deep Convolutional Autoencoders could be used for image anomaly detection on MNIST and Fashion MNIST. Functionality: Autoencoders encode the input to…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Basic Chatbots Using RASA

Chatbots have already become our best friends, personal assistants and what not. In fact it is known that they will soon be replacing all apps and web services and perhaps people too. Not only personal use but it can automate a lot of customer care services, saving companies a lot of money. In this article I will introduce you to making a basic restaurant reservation bot using RASA’s framework, coded in python.

RASA is a machine learning framework used to build chatbots and contextual AI assistants. RASA has two parts:

· RASA-NLU: Understands what the user wants to say and their intentions.

· RASA-CORE: Manages the dialogue flow and continues the conversation.

RASA-NLU is like the ears of the system. It uses open source natural language processing for intent classification and entity extraction. Intents contain the training data about what the user would say. This is saved as a markdown file which makes it easy for humans to read and write.

Next we have to make a configuration file which basically defines the components that RASA will use. Incoming messages are processed by a sequence of components which are executed one after another in a so-called processing pipeline. The required pipelines are stored in a .yml (just another file format) file.

Finally we load our training data and train it according to the given configuration file.

Dialogue management is handled by RASA-CORE. It is considered as the brain of the system. Here we make actions which deal with the responses of the bot to the user’s input. There are three types of actions we can use:

· Utterances : These are hard coded responses to a particular input of a user.

· Custom Actions : These are logic involved actions , such as validation of information and calculating amounts.

After this we make stories in a markdown file (.md). Stories contain the flow of the conversation. They determine the response made by the bot based on the user’s input. We try to make stories with all the possible outcomes or directions in which a conversation could go.

We also make the domain file (.yml) where we mention all the components of our model.

We once again train our model over the stories and actions we just created.

Our training is completed and we are ready to initiate a conversation with our bot. First we run the actions file with the following command on the command line(terminal):

Lastly, we run the following python code to talk to the bot.

For the actual codes and training data files refer to my Github Repository.

For more information you can also take a look at RASA’s official documentation:

Add a comment

Related posts:

Why We Fail to Follow Through

Most people have a good idea of how to turn their life around. The solutions are usually obvious. Everyone knows how to lose weight, make more money, or keep their house tidier. The challenge is…

Understanding Triple Talaq

Social institutions refer to an amalgamation of complex, integrated social norms which exist to preserve and maintain certain social values. A functionalist view comprehends social institutions as a…

Creative Marketing Ideas That Can Enhance Your Brand

Creative marketing has been emerging in the business world as a means of increasing brand awareness. Consumers tend to be drawn to, and pay more attention to a certain company, brand, or organization…