Streamlit can be used to create simple and easy web apps in Python. Streamlit makes deveopment and deployment of Web Apps very easy. Check out the official streamlit website.
Before we dive into creating the application on Streamlit, we will understand some Stock Market terminology. Accoring to Investopedia, “The stock market refers to the collection of markets and exchanges where regular activities of buying, selling, and issuance of shares of publicly-held companies take place.”
A stock code definitionis an item of stock on a stock quotation scheme. Each unique code is made up of either numbers and letters…
TextBlob is a Python Library for working with Text data. It provides simple API to dive into various Natural Language Processing Tasks.
Let us work on some NLP tasks using TextBlob. We shall work on some sentiment analysis.
We use the Trip Advisor reviews dataset, it has abourt 20,000 reviews with 1–5 star ratings on them.
#importing the libraries
import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
from textblob import TextBlob
from nltk.stem import WordNetLemmatizer
import matplotlib.pyplot as plt
%matplotlib inline#reading the data
Data are facts or statistics which can be used for reference and analysis. The entire data available is called population. The data which we are going to use for our use in analytics/ ML etc is known as sample. Sample is basically a subset of the population.
A real life example of population would be all the colleges in India and the sample would be the Engineering colleges in Kolkata, India.
Probability sampling is a sampling method in which the samples are chosen from a larger population using a method based on the theory of probability. …
Marketing now a days deals much more than a company or business trying to sell its products. According to Investopedia,
Marketing refers to activities a company undertakes to promote the buying or selling of a product or service. Marketing includes advertising, selling, and delivering products to consumers or other businesses. Some marketing is done by affiliates on behalf of a company.
But modern marketing is a lot more than that. The art of storytelling and connecting to the customer and building an overall reputation of the company/brand/business is also very important. Companies do a lot these days to innovate their…
Being an engineering student, I’m surprised that even today for sharing announcements, people still go door to door in apartment complexes and Local businesses still rely on flyers and pamphlets to attract customers. To spread a word in the local community, people are still depending upon phone calls and word of mouth.
Announce; a new platform to create and view announcements based on location could fill this gap.
While using Announce, if I want to create an announcement, I can define the area where it will be visible. By drawing the area on the map, I mark the geographical boundaries…
Till now, in the previous two parts of this blog, we worked on the analysis of the data, and created the machine learning classifier model to predict whether a given review is positive or negative.
Links to previous parts-
Let’s start by using the classifier to do a test prediction.
#doing a test prediction
test = ["the food was not very good, it was very rotten and tasted bad"]
#transforming for using on the model (using the count vectorizer)
test_vec = cv.transform(test)
#0= not liked
#1= liked the foodclassifier.predict(test_vec)
The output gave “0” which is the class for a…
In the Part 1 of this blog, we worked on analysis and understanding of the Restaurant Reviews dataset. We found out that word clouds and word frequency calculations will lead to valuable insights. Apart from that we looked into basic NLP techniques like removing punctuation, word tokenization, converting text into lower case. Important concepts like removal of stop words, stemming and lemmatization were also implementted.
For the Part 1, please visit-
As the dataset contains positive and negative reviews, now we shall build a classifier which will be able to classify a new given review into positive or negative. Classification…
Everyone these days seems to be talking about Machine Learning and everyone seems to be wanting to become a Data Scientist. But all that people know is working with Sklearn to import a few libraries. Very few people seem to care about the actual Data Science pipeline, and the business needs and the scope of the problem.
According to Wiki,
“Natural language processing (NLP) is a subfield of linguistics, computer science, and artificial intelligence concerned with the interactions between computers and human language, in particular how to program computers to process and analyze large amounts of natural language data.”
And how Artificial Intelligence(AI) and Big Data has helped to fight against it.
The corona virus outbreak now has spread to multiple countries and hit millions of lives with thousands of deaths across the world. The outbreak has caused numerous challenges and problems, with governments and organisations facing new problems. Global situation is alarming. Companies are facing losses.
At the time of writing this article 23:15 hours, Indian Standard Time, 18 March 2020, there have been over 145,000 corona virus cases all over the world with over 5400 confirmed deaths.
In India, the government has suspended all tourist visas and…
Do you really think that plastic is being conserved extensively? Have you taken any step to reduce the usage of plastics? The plastic flowing into the oceans and lakes fill up the land fills and has become a global threat. Here we come into the picture. This venture was started with an idea to minimise the plastic usage and gift a new life to our Mother Earth.
Our products are made from recycled materials and are almost fully biodegradable. We use recycled materials ( i.e. …
Electrical Engineering | IEM Kolkata | Varied Interests | Trying to understand the World.