Coder Social home page Coder Social logo

kamganganthony / nlp-powered-quote-web-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.17 MB

Get Powerful quotes on your phone or pc!!! NLP WEB APP

Home Page: https://quotes-web-app-nlp-ml-powered-7d4f6b1a0e84.herokuapp.com/

Procfile 0.04% Python 7.12% HTML 9.51% Jupyter Notebook 83.33%
deployment machine-learning machine-learning-deployment neural neural-language-processing nlp nlp-machine-learning quotes-application web-application mobile-deployment-machine-learning

nlp-powered-quote-web-app's Introduction

NLP-Powered-Quote-Web-App

Logo     Logo     Logo

Project Overview

  • Created a web app that provides quotes from the internet based on your mood
  • It makes use of an API to scrape quotes from the internet
  • The app has 110 quotes at any given time that it uses NLP to categorize
  • Sorted the quotes using VaderSentiment SentimentIntensityAnalyzer, from most pleasant to most unfriendly
  • Used requests to get the quotes from the API
  • On a mobile device, you can swipe through the app!
  • I made a web app using Flask. Try it!!! It also works well on mobile.

Code and Resources Used

Python Version: 3.10.5

Packages: pandas, NumPy, sklearn, matplotlib, seaborn, vaderSentiment, requests, nltk

For Web Framework Requirements: pip install -r requirements.txt

API: https://github.com/lukePeavey/quotable

Flask Productionization: https://quotes-web-app-nlp-ml-powered-7d4f6b1a0e84.herokuapp.com/

Scraping the quotes

I used an API command to scrape exactly 110 quotes at a time that were no more than 262 words long:

  • Aim for the moon. You might hit a star if you miss. --Stone, Clement

  • We can do anything we want to if we stick to it long enough. --Helaine Keller

  • You know you're in love when you can't fall asleep because reality is finally better than your dreams. --Dr. Seuss

  • ...and many others

Classifying the quotations and taking care of the display

Getting the quotes, transforming them, and displaying them on the web app:

  • Got quotes using requests

  • Converted them to JSON before converting them to a data frame of quotes and authors

  • Analyzed the quotes using the SentimentIntensityAnalyzer

  • Arranged them according to their feelings

  • Developed the logic to display quotes that are lighter or darker depending on the user's swipe

Page design

  • Envato Elements is where I got the bottom graphics (paid)

  • Used the website Canva to create the banner

  • Handled the HTML and CSS for the quotes

  • Swiping was made possible through Javascript code

https://quotes-web-app-nlp-ml-powered-7d4f6b1a0e84.herokuapp.com/

Logo

nlp-powered-quote-web-app's People

Contributors

kamganganthony avatar

Stargazers

 avatar

Watchers

 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.