Giter VIP home page Giter VIP logo

ai-chatbot-analytics's Introduction

Chatbot Analytics

This API is a Rest API of chatbot performance analysis.

image

Installation

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

Start the app

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

Usage

Swagger document helps you to use API, with examples and test screens.

http://localhost:5004/api/

Development Tools

  • 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

ai-chatbot-analytics's People

Stargazers

ÖZCAN YARIMDÜNYA avatar

Watchers

osman uygar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.