A chatbot that gets you meaning, synonym and antonym of words
Wordbot uses Api.ai for natural language understanding. It used python nltk wordnet corpous to get meaning synonym and antonym of words
This wordbot is like a "Hello world" program for building chatbot.
This application is built using python2.You need python 2 to be installed in your system.
If not you can create a virtualenv with python2 and use it
-
Install all required packages
pip install -r requirement.txt
-
To download nltk wordnet corpora
open python shell
import nltk
nltk.download()
-
It will open a dialog box.(Some cases of linux opens a shell prompt)
-
Download
wordnet
under corpora tab -
To run the application run
python app.py
This will run your application.
For your bot to understand natural language you need to train it.
- Create a account in Api.ai
- Create a new agent
- Go to settings > import & export
- Import training data
training.zip
file - Once you import it you have your agent trained to get you meanings and opposites
- To train it furthuer create new intents, entities etx.,
- For your training to take effect change
CLIENT_ACCESS_TOKEN
underapiai_toolkit.py