A Comprehensive Introduction to Torchtext (Practical Torchtext part 1)
If you've ever worked on a project for deep learning for NLP, you'll know how painful and tedious all the preprocessing is. Torchtext is a library that makes all the above processing much easier. In this post, I'll demonstrate how torchtext can be used to build and train a text classifier from scratch.To make this tutorial realistic, I'm going to use a small sample of data from this Kaggle competition. The data and code are available in my GitHub repo, so feel free to clone it and follow along. Or, if you just want to see the minimal working example, feel free to skip the rest of this tutorial and just read the notebook.
Mar-2-2018, 06:26:20 GMT