- Firstly, we need to create a virtual env
(.env)
and than we activate it. - Afterwards, we follow these instruction:
(.env) pip install -r requirements.txt
-
(.env) python
>>> import nltk
>>> nltk.download('punkt')
-
we create a file JSON 'intents.json' that we can Modify with different intents and responses.
-
(.env) python train.py
-
This will dump data.pth file. And then run.
-
(.env) python chat.py
-
the following command to test on interface that we devloped with HTML and CSS:
-
(.env) python app.py