-
Notifications
You must be signed in to change notification settings - Fork 5
/
Read Me!.txt
67 lines (54 loc) · 2.82 KB
/
Read Me!.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# seq2seq-chatbot
A sequence2sequence chatbot implementation with TensorFlow.
To run this program successfully the following requirements mustbe fullfilled.
Anaconda with Python 3.6 or higher
Tensorflow Version 1.13.1
1. Anaconda.
Download Anaconda from https://www.anaconda.com/distribution/
Install Anaconda
2. 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.
## Dependencies
The following python packages are used in seq2seq-chatbot:
(excluding packages that come with Anaconda)
- [googletrans]
```shell
pip install googletrans
```
- [jsonpickle](https://jsonpickle.github.io/)
```shell
pip install --upgrade jsonpickle
```
- [click 6.7](https://palletsprojects.com/p/click/), [flask 0.12.4](http://flask.pocoo.org/) and [flask-restful](https://flask-restful.readthedocs.io/en/latest/) (required to run the web interface)
```shell
pip install click==6.7
pip install flask==0.12.4
pip install --upgrade flask-restful
```
- [TensorFlow](https://www.tensorflow.org/)
```shell
pip install --upgrade tensorflow
```
For GPU support: [(See here for full GPU install instructions including CUDA and cuDNN)](https://www.tensorflow.org/install/)
```shell
pip install --upgrade tensorflow-gpu
```
## Relevant papers
1. [Sequence to Sequence Learning with Neural Networks](https://arxiv.org/abs/1409.3215)
2. [A Neural Conversational Model](https://arxiv.org/abs/1506.05869)
3. [Neural Machine Translation by Jointly Learning to Align and Translate](https://arxiv.org/abs/1409.0473) (Bahdanau attention mechanism)
4. [Effective Approaches to Attention-based Neural Machine Translation](https://arxiv.org/abs/1508.04025) (Luong attention mechanism)