GithubHelp home page GithubHelp logo

markus-hinsche / ambience Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 3.54 MB

WhatsApp Chat Analysis WebApp

Home Page: https://ambience.uber.space/

Shell 0.80% HTML 7.76% JavaScript 82.84% CSS 0.31% Python 8.29%
intent-classification conversation chat react python nlp machine-learning

ambience's Introduction

ambience Build Status

Ambience is a WhatsApp Chat Analysis WebApp.

Given you have a long English chat conversation, you can export and analyze it. For each single message in the chat, ambience predicts an intent and provides an overview of used intents. How does this help? For example, it can provide an overall impression which chat participant is more likely to propose something, or who asks more.

Find a deployed version here: https://ambience.uber.space.

An overview of the conversation will look like this: Ambience

The frontend is a React web app. For message classification, we use Rasa NLU. The predictions are transmitted via a lean Flask webserver.

Local Setup

To build the frontend, run:

yarn --cwd frontend

To install the pip requirements, and download the NLP model, run:

pip install -r nlp/requirements.txt
./nlp/get_mitie_models.sh

Usage

To start the frontend, run:

yarn --cwd frontend start

To start the backend, run:

python nlp/server.py

To verify that the setup works you can open http://localhost:3006 and upload a chat file like data/chat_en_short.txt. Of course you can also take your own exported WhatsApp conversation.

Train your message classification model

In order to (re)train the Rasa classification model, run:

python -m rasa_nlu.train \
    --config nlp/config_mitie.yml \
    --data data/training_data_mixed.json \
    --path nlp/projects

Intent list:

Analogously to rasa intents:

  • goodbye
  • greet
  • affirm
  • deny
  • argue
  • propose
  • ask
  • explain
  • other

Similar projects

https://chatvisualizer.com/

Deploy on Uberspace

In order to deploy this to our Uberspace, we followed the the instructions in deploy/README.md

Resources

Rasa:

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.