king of sentiment webapp

DEMYSTIFYING NATURAL LANGUAGE PROCESSING (NLP) WITH FLASK WEBAPP USING CUSTOM ML MODEL,API, AND PACKAGES(PART-3): COMBINING THE CUSTOM HOTEL REVEIW SENTIMENT ML MODEL,THE API AND PACKAGES FOR DEPLOYMENT IN FLASK

oluyede Segun (jr)
4 min readJan 5, 2021

--

INTRODUCTION

GOAL: This project explains the FLASK sentiment webapp and how it uses the custom Hotel reviews sentiment ML model, the IBM API for sentiments, emotions.. and python Packages/modules for summarization and for word sentiments. Also how to use the flask webapp as an API.

FLASK WEBAPP: https://kingofsentiments.herokuapp.com/

TO BETTER UNDERSTAND THIS FINAL PART ,READ THE PART 1 AND 2 SERIES

PART 1 NLP SERIES: https://juniorboyboy2.medium.com/demystifying-natural-language-processing-nlp-with-webapp-using-custom-ml-model-and-api-built-ec96eb9507bc

PART 2 NLP SERIES : https://juniorboyboy2.medium.com/demystifying-natural-language-processing-nlp-with-flask-webapp-using-custom-ml-model-api-and-891b414bc231

OUTLINE

1. Using Python Vader library for word sentiment in the flask webapp

2. Using IBM Natural Language Understanding API for sentiment, emotions and category of sentence in the flask webapp

3. Using GENSIM to summarize text from form in the flask webapp

4. Using the custom Hotel Review Sentiment ML model that we trained

5. How to make the Flask Sentiment webapp into an API

6 How to use the flask Sentiment webapp

7 How to use the flask Sentiment webapp api

1. Using the python Vader library for word sentiment in the flask webapp

import libraries needed

import libraries

using vader library:

using vader library:

2. USING IBM Natural Language Understanding API for sentiment, emotions and category of sentence in the flask webapp

USING IBM Natural Language Understanding API

3. Using GENSIM to summarize text from form in the flask webapp

GENSIM

4. Using the custom Hotel Review Sentiment ML model that we trained

NB: We stored the pickle file on AWS S3 Bucket

Using the custom Hotel Review Sentiment ML

5. How to make the Flask Sentiment webapp into an API

TO make a WORD SENTIMENT API

TO make a WORD SENTIMENT API
TO make a WORD SENTIMENT API

How to make the HOTEL REVIEWS SENTIMENT CUSTOM ML API

HOTEL REVIEWS SENTIMENT CUSTOM ML API

6 How to use flask sentiment webapp

visit link : https://kingofsentiments.herokuapp.com/ and Input your text and press button

How to use flask sentiment webapp

To summarize text: Copy the the whole sentence and paste in the word summarizer form

To summarize text

7 How to use flask sentiment webapp api

using the hotel review web api

using word sentiment web api

how to use the flask web api programmatically in python

how to use the flask web api programmatically in python

8. CONCLUSION

This project shows you how the king of sentiment webapp was built and how it works online. Also how to use it programmatically. The app was deployed with heroku. Read part 1 and 2 for better understanding.

WRITER: OLUYEDE SEGUN . A(jnr)

FLASK WEBAPP GITHUB LINK: https://github.com/juniorboycoder/Flask_webapp_Sentiment_deployed

WEBAPP LINK: https://kingofsentiments.herokuapp.com/

linkelin profile: https://www.linkedin.com/in/oluyede-segun-jr-a-a5550b167/

twitter profile: https://twitter.com/oluyedejun1

TAGS: #NLP #NLTK #Sentiment #MachineLearning #API #IBM #FLASK #HEROKU

--

--

oluyede Segun (jr)

Certified I.T specialist | Computer Network Admin | Cloud | Artificial intelligence ( Machine Learning & Data Science),& webdev. python/JavaScript language