Python Tutorial: Introduction to NLP feature engineering

7 Apr 2020 · 5 min
4:34

In this introductory lecture, instructor Raunak explains the fundamentals of feature engineering for natural language processing (NLP) using Python. He begins by emphasizing that machine learning models require numerical, tabular data, illustrating this with the Iris dataset and explaining how categorical variables can be transformed into numeric form via one‑hot encoding using pandas' get_dummies function. The lecture then outlines the two‑step process needed to make raw text (e.g., movie reviews) usable for ML: first, text standardization (lowercasing and lemmatization) and second, vectorization to convert the cleaned text into numeric feature vectors. Raunak also describes simple document‑level features such as word count, character count, average word length, and tweet‑specific metrics like hashtag count. Finally, he introduces word‑level features, covering part‑of‑speech (POS) tagging and named entity recognition (NER) with concrete examples. The session sets the stage for later lessons that will dive deeper into preprocessing, feature extraction, and vectorization techniques.

Chapters

More from Richie

youtube.com

#359 My Best Friend is AI with Valerie Tiberius, Professor of Philosophy at University of Minnesota

5mo ago
youtube.com

17.8% of the World Now Uses AI — And the Gap Is Widening | The Median #5

5mo ago
youtube.com

Create GPTs to Automate Go-To-Market Research

5mo ago
youtube.com

What Happened to Self-Driving Cars? #AI

5mo ago
youtube.com

Never Use AI For This #warning #AI #flights

5mo ago
youtube.com

Use AI Agents to Analyze Power Grid Optimization

5mo ago
youtube.com

This is how modern AI actually solves problems #AITrends #AI

5mo ago
youtube.com

How AI Agents Will Work While You Sleep | Ruslan Salakhutdinov, Professor at Carnegie Mellon

5mo ago
youtube.com

#358 How AI Agents Will Work While You Sleep | Ruslan Salakhutdinov, Professor at Carnegie Mellon

5mo ago
youtube.com

Build an AI‑driven Dashboard

5mo ago
youtube.com

What’s Broken in Labor Markets Today #datascience

5mo ago
See all content