A Sequence to Sequence Model Implementation of Urdu Natural Language Processing. Below is the link to download the windows installer. Make sure to install the prequisites before installing. After Installation run the app by the Icon from the desktop and after 40 seconds referesh the page which is opened in your browser.
- Urdu Chatbot Windows App Windows app will not work if your tensorflow 1.13 installed using virtual environment, for that you have to download the source from Github. We will add environment support soon!
- Download Checkpoints Download the checpoints folder and paste in the main directory of the chatbot.
A sequence2sequence chatbot implementation with TensorFlow. Here are some responses.
To run this program successfully the following requirements mustbe fullfilled. Anaconda with Python 3.6 or higher Tensorflow Version 1.13.1
-
Anaconda. Download Anaconda from https://www.anaconda.com/distribution/ Install Anaconda
-
Tensorflow 1.13.1 If you already installed the anaconda and tensorflow. Check version of your Tensorflow Installation. Open Anaconda Prompt and write 'python' and hit enter. Python command line interface will open. In there write following python lines to check your version of Tensorflow.
import tensorflow as tf print(tf.version) If the result is 1.13.1 then you are good to go. Just Double Click the 'Urdu Virtual Assistant' icon on your desktop. If the webpage is not loaded wait for 20 seconds and reload the page or hit the F5 key.
If the version of your Tensorflow Installation is not 1.0.0 then you have to uninstall your current Tensorflow. Open Anaconda Prompt and write the following command.
pip uninstall tensorflow
You will be asked to 'Procees (y/n)?' enter 'y' and hit enter key. After uninstallation enter the following command in Anaconda Prompt to Install Tensorflow 1.13.1
pip install tensorflow==1.13.1
and hit enter. After installation Just Double Click the 'Urdu Virtual Assistant' icon on your desktop. If the webpage is not loaded wait for 20-40 seconds and reload the page or hit the F5 key.
The following python packages are used in seq2seq-chatbot: (excluding packages that come with Anaconda)
-
pip install googletrans
-
pip install --upgrade jsonpickle
-
click 6.7, flask 0.12.4 and flask-restful (required to run the web interface)
pip install click==6.7 pip install flask==0.12.4 pip install --upgrade flask-restful
-
pip install --upgrade tensorflow
For GPU support: (See here for full GPU install instructions including CUDA and cuDNN)
pip install --upgrade tensorflow-gpu
-
Neural Machine Translation by Jointly Learning to Align and Translate (Bahdanau attention mechanism)
-
Effective Approaches to Attention-based Neural Machine Translation (Luong attention mechanism)