[Code] PyTorch sentiment classifier from scratch with Huggingface NLP Library (Full Tutorial)

Subscribers:
284,000
Published on ● Video Link: https://www.youtube.com/watch?v=G3pOvrKkFuk



Category:
Let's Play
Duration: 1:02:41
38,206 views
1,073


Huggingface released its newest library called NLP, which gives you easy access to almost any NLP dataset and metric in one convenient interface. We will combine this with a BERT model from Huggingface's Transformers library to build a sentiment classifier for IMDB.

OUTLINE:
0:00 - Intro
1:30 - Boilerplate
3:20 - PyTorch Lightning Module
9:50 - Load Dataset
12:15 - Tokenization
20:50 - Torch Tensors
25:50 - Data Loader
28:00 - Create BERT Model
32:00 - Implement Validation and Train Step
47:00 - Run & Recap
50:20 - Epilogue

My Code: https://github.com/yk/huggingface-nlp-demo
NLP Library: https://github.com/huggingface/nlp
Tutorial Colab: https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb
Transformers Library: https://github.com/huggingface/transformers
Pytorch Lightning: https://github.com/PyTorchLightning/pytorch-lightning

Links:
YouTube: https://www.youtube.com/c/yannickilcher
Twitter: https://twitter.com/ykilcher
BitChute: https://www.bitchute.com/channel/yannic-kilcher
Minds: https://www.minds.com/ykilcher




Other Videos By Yannic Kilcher


2020-05-28DETR: End-to-End Object Detection with Transformers (Paper Explained)
2020-05-27mixup: Beyond Empirical Risk Minimization (Paper Explained)
2020-05-26A critical analysis of self-supervision, or what we can learn from a single image (Paper Explained)
2020-05-25Deep image reconstruction from human brain activity (Paper Explained)
2020-05-24Regularizing Trajectory Optimization with Denoising Autoencoders (Paper Explained)
2020-05-23[News] The NeurIPS Broader Impact Statement
2020-05-22When BERT Plays the Lottery, All Tickets Are Winning (Paper Explained)
2020-05-21[News] OpenAI Model Generates Python Code
2020-05-20Investigating Human Priors for Playing Video Games (Paper & Demo)
2020-05-19iMAML: Meta-Learning with Implicit Gradients (Paper Explained)
2020-05-18[Code] PyTorch sentiment classifier from scratch with Huggingface NLP Library (Full Tutorial)
2020-05-17Planning to Explore via Self-Supervised World Models (Paper Explained)
2020-05-16[News] Facebook's Real-Time TTS system runs on CPUs only!
2020-05-15Weight Standardization (Paper Explained)
2020-05-14[Trash] Automated Inference on Criminality using Face Images
2020-05-13Faster Neural Network Training with Data Echoing (Paper Explained)
2020-05-12Group Normalization (Paper Explained)
2020-05-11Concept Learning with Energy-Based Models (Paper Explained)
2020-05-10[News] Google’s medical AI was super accurate in a lab. Real life was a different story.
2020-05-09Big Transfer (BiT): General Visual Representation Learning (Paper Explained)
2020-05-08Divide-and-Conquer Monte Carlo Tree Search For Goal-Directed Planning (Paper Explained)



Tags:
deep learning
machine learning
arxiv
explained
neural networks
ai
artificial intelligence
paper
code
pytorch
bert
pretrained
lightning
live
tutorial
pip
nlp
transformers
tokenizers
sequence
sentiment
imdb
dataset
full
github