Tensorflow
Tensorflow is a Google-powered open-source machine learning libraryfor high-performance numerical computations.
To get into the basics of Tensorflow, go to https://www.tensorflow.org/tutorials/.
This tutorial is all about creating a very simple information bot using Tensorflow that will classify the intent of user from the pre-defined intents and provide the corresponding information to the user.
Follow these steps to create this simple bot -
- Clone the github repository from https://github.com/prayas26/Simple-Chatbot-Using-Tensorflow
- Install the requirements using the command pip install -r requirements.txt.
- Open the intents.json file and create a dictionary with the intents (an example is already present in the file).
- Tag - it is the intent of the information
- Patterns - sentence patterns for our neural network text classifiers
- Responses - it is the answers to the corresponding intent
- Now open terminal and enter python and hit enter.
- Enter the following lines of code -
- import nltk
- nltk.download('punkt')
- Run the command - python bot.py
You can see your bot being trained. After the training is complete, you can see many new files added to your folder. - Now, just run the command - python response_bot.py
- Enter any question with the defined intents and check the reply.
Author - Prayas Mittal
Blackjack at Borgata Hotel Casino & Spa - MapYRO
ReplyDeleteFind directions, hours, directions, 계룡 출장샵 and 제천 출장샵 a map 제천 출장안마 of 안산 출장마사지 Blackjack at Borgata Hotel 군포 출장안마 Casino & Spa, Atlantic City on MapYRO.