This API is a Rest API of chatbot performance analysis.
To download and unzip the application the following commands.
cd /u01/DAAP/
mkdir ai-chatbot-analytics
cd /u01/DAAP/daap-ai-chatbot-analytics
---- download zip package to here -----
unzip <file>
Create a virtual Python environment in a directory named venv, activate the virtualenv and install required dependencies using pip.
cd /u01/DAAP/daap-ai-chatbot-analytics/
virtualenv -p `which python3` venv
source venv/bin/activate
pip install -r requirements.txt
Dev - Prod Changes
/u01/DAAP/daap-ai-chatbot-analytics/frontend/settings.py
FLASK_SERVER_NAME = 'localhost:5004'
FLASK_SERVER_NAME = '172.28.9.75:5004'
MONGODB_DB =
MONGODB_HOST =
MONGODB_PORT =
MONGODB_USERNAME =
MONGODB_PASSWORD =
Install packages
cd /u01/DAAP/daap-ai-chatbot-analytics/
python setup.py develop
Activate the virtual enviroment Start the application with Gunicorn
source /u01/DAAP/venvChatbotAnalytics/bin/activate
cd /u01/DAAP/daap-ai-chatbot-analytics/frontend/
gunicorn \
--bind 0.0.0.0:5004 app:app \
--log-file /u01/DAAP/daap-ai-chatbot-analytics/daap-ai-chatbot-analytics.log \
--error-logfile /u01/DAAP/daap-ai-chatbot-analytics/error.log \
--access-logfile /u01/DAAP/daap-ai-chatbot-analytics/access.log \
--log-level=info \
--timeout 7200 \
--workers 2 \
--threads 4 &
Install packages
cd /u01/DAAP/daap-ai-chatbot-analytics2/
python setup.py develop
Activate the virtual enviroment Start the application with Gunicorn
source /u01/DAAP/venvChatbotAnalytics/bin/activate
cd /u01/DAAP/daap-ai-chatbot-analytics2/frontend/
gunicorn \
--bind 0.0.0.0:5005 app:app \
--log-file /u01/DAAP/daap-ai-chatbot-analytics2/daap-ai-chatbot-analytics.log \
--error-logfile /u01/DAAP/daap-ai-chatbot-analytics2/error.log \
--access-logfile /u01/DAAP/daap-ai-chatbot-analytics2/access.log \
--log-level=info \
--timeout 7200 \
--workers 2 \
--threads 4 &
Kill the application
ps -ef | grep "gunicorn"
kill -9 xxxx
Swagger document helps you to use API, with examples and test screens.
- Python - Programing language
- SQLite - SQL database engine
- Scikit-learn - Python ML library
- Flask - Python based web development microframework
- Swagger - API development framework
- NLTK - Language processing library
- Zemberek - Language processing tool
- Gunicorn - Python WSGI HTTP Server for UNIX
######TECH