Skip to content

ojassingh/text-toxicity-blog

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Here is a glance at it:

Screenshot 2023-01-21 at 11 46 41 PM

Screenshot 2023-01-21 at 11 47 10 PM

AWS Amplify Next.js Sentiment Analysis App with TensorFlow.js

This repository contains an AWS Amplify and Next.js-based web application that performs sentiment analysis on blog posts using TensorFlow.js' text toxicity detection model. The app allows users to input text, such as blog posts or comments, and analyze the sentiment of the content to detect any toxic or negative language.

Table of Contents

Demo

Note (Update Jul 28 2023): this app is not in production anymore.

Features

  • Perform sentiment analysis on text content to detect toxicity and negativity.
  • Real-time analysis with instant feedback to the user.
  • Built with AWS Amplify for easy deployment and scalability.
  • Utilizes TensorFlow.js' text toxicity detection model for accurate sentiment analysis.
  • Responsive and user-friendly interface.

Getting Started

To get the app up and running on your local machine, follow the instructions below.

Prerequisites

  • Node.js and npm must be installed. You can download them from here.
  • An AWS account is required for deploying the app using AWS Amplify.

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/your-username/your-repository.git
    cd your-repository
    
  2. Install the required dependencies:

npm install

Usage

  1. Run the app on your local machine:
npm run dev
  1. Open your web browser and navigate to http://localhost:3000 to access the app.

  2. Enter the text you want to analyze in the provided input field and click the "Analyze" button.

  3. The app will perform sentiment analysis on the text using TensorFlow.js' text toxicity detection model and display the results in real-time.

  4. Explore the app and have fun analyzing different texts!

Technologies

The app is built using the following technologies:

  • Next.js: A popular React framework for server-side rendering and static site generation.
  • AWS Amplify: A set of tools and services for building and deploying serverless applications on AWS.
  • TensorFlow.js: A JavaScript library for machine learning, used here for text toxicity detection.
  • React: A JavaScript library for building user interfaces.
  • Tailwind CSS: A utility-first CSS framework for styling the app.

Acknowledgments

  • The TensorFlow.js team for providing the text toxicity detection model.
  • The AWS Amplify team for making it easy to build scalable and secure applications.
  • The Next.js and React communities for their valuable contributions.

Feel free to contribute to this repository by creating issues or pull requests. If you have any questions or feedback, please don't hesitate to reach out.

Happy sentiment analysis!

Releases

No releases published

Packages

No packages published