Giter Site home page Giter Site logo

chandler767 / read-the-room Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 1.0 343 KB

This demo processes conversations in real-time with the Amazon Comprehend natural language processing (NLP) service to gain insights about what was said.

License: The Unlicense

Go 85.04% CSS 14.96%
amazon-comprehend sentiment-analysis visualization natural-language-processing key-phrase-extraction dashboard golang webapp demo demo-app

read-the-room's Introduction

Read The Room

This demo processes conversations in real-time with the Amazon Comprehend natural language processing (NLP) service to gain insights about the conversation.

The conversation sentiment, sentiment history, and any detected key words/phrases are displayed in real-time on the dashboard.

Running The Demo

  1. Before you can run this demo you need an AWS account and IAM user credentials. It's important you create and restrict the credentials properly. Learn more about and create the credentials before you get started: Authentication and Access Control for Amazon Comprehend

  2. Fork/clone this repo.

  3. Navigate to the 'application' folder and open '.env'. You may need to show hidden files to see the '.env' file.

  4. Add your AWS keys to the '.env' file.

AWS_ACCESS_KEY=YOUR_ACCESS_KEY_HERE
AWS_SECRET_KEY=YOUR_SECRET_KEY_HERE
  1. Use your console to get all the dependencies and run the project (from within the 'application' folder): go get -d && go run main.go

  2. A browser window should open automatically and the dashboard should be displayed. Use Google Chrome and navigate to http://localhost:8091/ if the dashboard does not display or if the dashboard opens in an incompatible browser.

  3. Start talking! Try saying positive, neutral, and negative phrases. Does the sentiment match what you're saying? Is it detecting the key words/phrases in your speech?

Try phrases like:

  • "I'm so happy I get to play with this Amazon Comprehend Demo."
  • "The earth is the third planet from the sun in our solar system."
  • "I think eating popcorn with your mouth open is stupid."

How The Demo Works

  1. The Web Speech API is used to convert text to speech.

  2. When a chunk of text is ready it is sent to our process api: http://localhost:8091/process/

  3. The text is forwarded to Amazon Comprehend and the result is returned to the dashboard.

  4. Highcharts is used to create a visual representation of the sentiment and sentiment history. Any key phrases are formatted and displayed in the text area below the charts.

What Else Can You Do With Amazon Comprehend And This Demo

You could use this demo to:

  • Monitor in person customer reactions.
  • Monitor customer reactions on phone calls and auto recordings.
  • Determine how a presentation will be received without an audience.

Some other things you can do with Amazon Comprehend:

  • Identify the feature that’s most often mentioned when customers are happy or unhappy about your product.
  • Monitor support channels and gain new insights.
  • Organize and categorize your documents by topic.

read-the-room's People

Contributors

chandler767 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

the-locksmith

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.