Easy Natural Language Processing (NLP) in Python
4.6 (880 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
6,368 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Easy Natural Language Processing (NLP) in Python to your Wishlist.

Add to Wishlist

Easy Natural Language Processing (NLP) in Python

Complete guide to practical NLP: spam detection, sentiment analysis, article spinners, and latent semantic analysis.
4.6 (880 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
6,368 students enrolled
Last updated 5/2017
English
English
Current price: $10 Original price: $120 Discount: 92% off
30-Day Money-Back Guarantee
Includes:
  • 2.5 hours on-demand video
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Write your own spam detection code in Python
  • Write your own sentiment analysis code in Python
  • Perform latent semantic analysis or latent semantic indexing in Python
  • Have an idea of how to write your own article spinner in Python
View Curriculum
Requirements
  • Install Python, it's free!
  • You should be at least somewhat comfortable writing Python code
  • Install numerical libraries for Python such as Numpy, Scipy, Scikit-learn, Matplotlib, and BeautifulSoup
  • Some familiarity with PCA, Markov Models, Logistic Regression
Description

In this course you will build MULTIPLE practical systems using natural language processing, or NLP - the branch of machine learning and data science that deals with text and speech. This course is not part of my deep learning series, so it doesn't contain any hard math - just straight up coding in Python. All the materials for this course are FREE.

After a brief discussion about what NLP is and what it can do, we will begin building very useful stuff. The first thing we'll build is a spam detector. You likely get very little spam these days, compared to say, the early 2000s, because of systems like these.

Next we'll build a model for sentiment analysis in Python. This is something that allows us to assign a score to a block of text that tells us how positive or negative it is. People have used sentiment analysis on Twitter to predict the stock market.

We'll go over some practical tools and techniques like the NLTK (natural language toolkit) library and latent semantic analysis or LSA.

Finally, we end the course by building an article spinner. This is a very hard problem and even the most popular products out there these days don't get it right. These lectures are designed to just get you started and to give you ideas for how you might improve on them yourself. Once mastered, you can use it as an SEO, or search engine optimization tool. Internet marketers everywhere will love you if you can do this for them!

This course focuses on "how to build and understand", not just "how to use". Anyone can learn to use an API in 15 minutes after reading some documentation. It's not about "remembering facts", it's about "seeing for yourself" via experimentation. It will teach you how to visualize what's happening in the model internally. If you want more than just a superficial look at machine learning models, this course is for you.


NOTES:

All the code for this course can be downloaded from my github: /lazyprogrammer/machine_learning_examples

In the directory: nlp_class

Make sure you always "git pull" so you have the latest version!


HARD PREREQUISITES / KNOWLEDGE YOU ARE ASSUMED TO HAVE:

  • calculus
  • linear algebra
  • probability
  • Python coding: if/else, loops, lists, dicts, sets
  • Numpy coding: matrix and vector operations, loading a CSV file
  • Sci-Kit Learn API
  • Some familiarity with PCA, Markov Models, Logistic Regression


TIPS (for getting through the course):

  • Watch it at 2x.
  • Take handwritten notes. This will drastically increase your ability to retain the information.
  • Ask lots of questions on the discussion board. The more the better!
  • Realize that most exercises will take you days or weeks to complete.
  • Write code yourself, don't just sit there and look at my code.


USEFUL COURSE ORDERING:

  • (The Numpy Stack in Python)
  • Linear Regression in Python
  • Logistic Regression in Python
  • (Supervised Machine Learning in Python)
  • (Bayesian Machine Learning in Python: A/B Testing)
  • Deep Learning in Python
  • Practical Deep Learning in Theano and TensorFlow
  • (Supervised Machine Learning in Python 2: Ensemble Methods)
  • Convolutional Neural Networks in Python
  • (Easy NLP)
  • (Cluster Analysis and Unsupervised Machine Learning)
  • Unsupervised Deep Learning
  • (Hidden Markov Models)
  • Recurrent Neural Networks in Python
  • Natural Language Processing with Deep Learning in Python


Who is the target audience?
  • Students who are comfortable writing Python code, using loops, lists, dictionaries, etc.
  • Students who want to learn more about machine learning but don't want to do a lot of math
  • Professionals who are interested in applying machine learning and NLP to practical problems like spam detection, Internet marketing, and sentiment analysis
Curriculum For This Course
23 Lectures
02:22:54
+
Natural Language Processing - What is it used for?
5 Lectures 20:04

NLP is very practical, so it's worth listing out what it is used for. Here we give brief overviews of things like spam detection, POS tagging, NER, sentiment analysis, machine translation, summarization, the Turing test, and more.

NLP Applications
06:40

In this lecture some examples of ambiguity of language are given, to make it clear why NLP is not a straightforward problem.

Why is NLP hard?
02:30

The Central Message of this Course
02:22

How to Succeed in this Course
05:28
+
Build your own spam detector
3 Lectures 09:54
Build your own spam detector - description of data
02:08


In addition to the word frequencies we looked at previously, this lecture looks at bag-of-words in general and different ways to implement that, including raw counts and binary indicator variables. We also briefly mention TF-IDF.

Other types of features
01:30
+
Build your own sentiment analyzer
2 Lectures 23:00

What is sentiment analysis? In this lecture we'll look at the data we'll be using to build our sentiment analysis tool, and talk about how we can manually pre-process the data so that we can plug it into a machine learning classifier.

Description of Sentiment Analyzer
03:12

In this lecture we'll write our sentiment analyzer in Python to predict sentiment on Amazon reviews.

Sentiment Analysis in Python
19:48
+
NLTK Exploration
3 Lectures 07:18

How do we tag the tokens of a sentence by their parts-of-speech? i.e. Is this token a noun, verb, adjective, adverb, or something else?

NLTK Exploration: POS Tagging
02:00

How do we turn words into their "base form"? i.e. plural to singular

NLTK Exploration: Stemming and Lemmatization
02:05

Can we also tag parts of a sentence as a "person", "organization", or "location"?

NLTK Exploration: Named Entity Recognition
03:13
+
Latent Semantic Analysis
3 Lectures 20:37

What is synonymy and polysemy and how can LSA / LSI help?

Latent Semantic Analysis - What does it do?
02:30

PCA and SVD - The underlying math behind LSA
07:59

Latent Semantic Analysis in Python
10:08
+
Write your own article spinner
3 Lectures 16:27

What is article spinning and how is it related to search engines, SEO (search engine optimization), and Internet marketing?

Article Spinning Introduction
02:43

What will be our strategy for creating an article spinner? We'll create a trigram model.

Trigram Model
02:11

Writing an article spinner in Python
11:33
+
How to learn more about NLP
1 Lecture 02:45

Important NLP topics you should "know of" but that we didn't cover, and where you can learn more.

Preview 02:45
+
Appendix
3 Lectures 42:49
How to install Numpy, Scipy, Matplotlib, Pandas, IPython, Theano, and TensorFlow
17:32

How to Code by Yourself (part 1)
15:54

How to Code by Yourself (part 2)
09:23
About the Instructor
Lazy Programmer Inc.
4.6 Average rating
12,545 Reviews
66,305 Students
19 Courses
Data scientist and big data engineer

I am a data scientist, big data engineer, and full stack software engineer.

For my masters thesis I worked on brain-computer interfaces using machine learning. These assist non-verbal and non-mobile persons communicate with their family and caregivers.

I have worked in online advertising and digital media as both a data scientist and big data engineer, and built various high-throughput web services around said data. I've created new big data pipelines using Hadoop/Pig/MapReduce. I've created machine learning models to predict click-through rate, news feed recommender systems using linear regression, Bayesian Bandits, and collaborative filtering and validated the results using A/B testing.

I have taught undergraduate and graduate students in data science, statistics, machine learning, algorithms, calculus, computer graphics, and physics for students attending universities such as Columbia University, NYU, Humber College, and The New School. 

Multiple businesses have benefitted from my web programming expertise. I do all the backend (server), frontend (HTML/JS/CSS), and operations/deployment work. Some of the technologies I've used are: Python, Ruby/Rails, PHP, Bootstrap, jQuery (Javascript), Backbone, and Angular. For storage/databases I've used MySQL, Postgres, Redis, MongoDB, and more.