Skip to content

krismosk/tonesense-frontend

Repository files navigation

ToneSense

Introduction

ToneSense is a React web app that allows a user to enter in a sentence and receive a sentiment analysis result from a Machine Learning Model. This repository contains the source code for the React web app.

The app is integrated with two versions of a Flask RESTful API. The user is able to toggle between the first version (utilizing pre-trained Google NLP API model) and the second version (utilizing a fine-tuned Naive Bayes Classifier model).

The user will be able to interact with a machine learning model by submitting a sentence and receiving a result of "likely positive", "likely neutral", or "likely negative" (if Google NLP API option is toggled). If the Naive Bayes Classifier option is toggled, the user will see only "likely positive" or "likely negative" because the Naive Bayes Classifier was fine-tuned with binary classification. Both versions return suggested emojis to include along with the user's message to match it's tone.

Deployed with Google Firebase.

Installation

  1. Clone this repository.
  2. Checkout master branch.
  3. Install dependencies with npm install.
  4. Start server with npm start.
  5. To interact with the server-side Flask API, follow the installation instructions in the corresponding repository.

Demo

ToneSense Demo

ToneSense is developed by Kristina Moskalets as a capstone project for Ada Developers Academy.

About

React web app that uses machine learning to detect a sentence's tone and sentiment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published