Giter Site home page Giter Site logo

reyadrahman / nlp-quote-maker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grumpyp/nlp-quote-maker

0.0 1.0 0.0 10.97 MB

A NLP driven script which will give you a quote according to the sentence you feed it. πŸ’¬ It pulls data from several API's and makes up a relation by f.e. sentiment of the sentenceπŸ’«

License: MIT License

Python 44.06% HTML 20.12% CSS 0.77% Jupyter Notebook 34.23% JavaScript 0.83%

nlp-quote-maker's Introduction

NLP-quote-maker

A NLP driven script which will give you a quote according to the sentence you feed it. It pulls data from several API's and makes up a relation by f.e. sentiment of the sentence.

Start-up

To run the app

  • Clone this repository git clone [email protected]:grumpyp/NLP-quote-maker.git
  • Setup virtual environment if required python -m venv venv
  • Install requirements.txt pip install -r requirements.txt
  • Run app with python app\main.py

⭐ Current features & Interface

  • NLTK SentimentIntensityAnalyzer was used to gpositive/neutral/negative rating scores and normalized into a composite score.
  • Entity labelling with spacy was used to attach one or more classes to each quote.
  • A text box is provided for user input where text is assessed, rated, matched to existing quotes within a quote database, and outputted with associated rating score.

πŸ‘Ύ Repo Setup

Main branches containing all relevant files for use/development are found in the deployment and development branch respectively. Proposed changes should be done and pulled on development branch first prior to merge with depolyment.

app
β”œβ”€β”€ src
β”‚   β”œβ”€β”€ db.py
β”‚   └── functions.py
β”œβ”€β”€ static
β”‚   β”œβ”€β”€ css
β”‚   β”‚   └── style.css
β”‚   └── js
β”‚       └── main.js
β”œβ”€β”€ templates
β”‚   β”œβ”€β”€ index.html
β”‚   └── layout.html
β”œβ”€β”€ config.py
β”œβ”€β”€ main.py   
└── views.py 

Support & Contributing

Feature Requests? Please file an issue

I am happy to see all kind of contributions!

ToDo

  • Setup Flask environment
  • Deployment on Heroku
  • Build frontend with dynamic search field
  • Find API's for quotes
  • Use Twitter / Reddit API
  • Find features to do a rating of the sentence
  • Find suitable NLP libraries
  • Write inital readme

nlp-quote-maker's People

Contributors

grumpyp avatar gitforharpreet avatar jedi3nigma avatar itsdrac avatar

Watchers

James Cloos 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.