Monday, May 18, 2020

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


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://ift.tt/3cJJEpg NLP Library: https://ift.tt/2WxRcpt Tutorial Colab: https://ift.tt/2LKsnkh Transformers Library: https://ift.tt/2lgsdXY Pytorch Lightning: https://ift.tt/2G5WIGR Links: YouTube: https://www.youtube.com/c/yannickilcher Twitter: https://twitter.com/ykilcher BitChute: https://ift.tt/38iX6OV Minds: https://ift.tt/37igBpB

No comments:

Post a Comment