GithubHelp home page GithubHelp logo

emoji-chat-bot's Introduction

NL Emoji Conversational Bot API ๐Ÿ˜ป๐Ÿ”ฅ

This is a project that tries to play around with the power of a very simple NL engine, defined as a feedforward (fully connected) neural network in Tensorflow, using softmax activation with a regression in the end. So, we're basically transforming the NL problem into an intent classification problem. Cool, right?

This project has a 'bot' in its engine, and uses Flask for exposing an API through /chat for interacting with the bot. Currently, you're able to tell the bot what mood you're in, what your favourite emoji is (and store it by doing so in a small SQL DB), and ask the bot what your favourite emoji is.

Requirements

๐Ÿ’ป Computer ๐Ÿ Python ๐Ÿฆ„ APIs in requirements.txt

This project contains:

Bot

A conversational 'bot', trained on data defined in intents.json. Able to infer the intent of a sentence/conversation and reply in a manner you define.

Known issues: Mixing up the save/return_saved domains. Currently, I've only seen correct mapping by saying 'What's my favourite' for retreiving favourite emoji, everything else maps to save ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

Flask Server

Flask microservice for creating and exposing API through /chat.

API

Example call:

/chat?username=oktay&query=hi my favourite emoji is ๐Ÿ˜ˆ

Database

SQLAlchemy DB for ease, storing user favourite emojis.

Model + Training

There's a trained model in the /bot catalog. If you want to train again with new data, run training in bot.py by executing python bot.py

How to Run

First off, create the database: python create_db.py

Then you're ready to go! Create the webserver: python app.py

There's a very simple UI that you can find at index to talk to the bot, http://127.0.0.1:5000/

emoji-chat-bot's People

Contributors

professoroakz 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.