Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Deep Learning with PyTorch

You're reading from  Deep Learning with PyTorch

Product type Book
Published in Feb 2018
Publisher Packt
ISBN-13 9781788624336
Pages 262 pages
Edition 1st Edition
Languages
Author (1):
Vishnu Subramanian Vishnu Subramanian
Profile icon Vishnu Subramanian
Toc

Table of Contents (11) Chapters close

Preface 1. Getting Started with Deep Learning Using PyTorch 2. Building Blocks of Neural Networks 3. Diving Deep into Neural Networks 4. Fundamentals of Machine Learning 5. Deep Learning for Computer Vision 6. Deep Learning with Sequence Data and Text 7. Generative Networks 8. Modern Network Architectures 9. What Next? 10. Other Books You May Enjoy

Using pretrained word embeddings

Pretrained word embeddings would be useful when we are working in specific domains, such as medicine and manufacturing, where we have lot of data to train the embeddings. When we have little data on which we cannot meaningfully train the embeddings, we can use embeddings, which are trained on different data corpuses such as Wikipedia, Google News and Twitter tweets. A lot of teams have open source word embeddings trained using different approaches. In this section, we will explore how torchtext makes it easier to use different word embeddings, and how to use them in our PyTorch models. It is similar to transfer learning, which we use in computer vision applications. Typically, using pretrained embedding would involve the following steps:

  • Downloading the embeddings
  • Loading the embeddings in the model
  • Freezing the embedding layer weights

Let&apos...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime