Explore the encoder and decoder of the transformer model
Become well-versed with BERT along with ALBERT, RoBERTa, and DistilBERT
Discover how to pre-train and fine-tune BERT models for several NLP tasks
Description
BERT (bidirectional encoder representations from transformer) has revolutionized the world of natural language processing (NLP) with promising results. This book is an introductory guide that will help you get to grips with Google's BERT architecture. With a detailed explanation of the transformer architecture, this book will help you understand how the transformer’s encoder and decoder work.
You’ll explore the BERT architecture by learning how the BERT model is pre-trained and how to use pre-trained BERT for downstream tasks by fine-tuning it for NLP tasks such as sentiment analysis and text summarization with the Hugging Face transformers library. As you advance, you’ll learn about different variants of BERT such as ALBERT, RoBERTa, and ELECTRA, and look at SpanBERT, which is used for NLP tasks like question answering. You'll also cover simpler and faster BERT variants based on knowledge distillation such as DistilBERT and TinyBERT. The book takes you through MBERT, XLM, and XLM-R in detail and then introduces you to sentence-BERT, which is used for obtaining sentence representation. Finally, you'll discover domain-specific BERT models such as BioBERT and ClinicalBERT, and discover an interesting variant called VideoBERT.
By the end of this BERT book, you’ll be well-versed with using BERT and its variants for performing practical NLP tasks.
Who is this book for?
This book is for NLP professionals and data scientists looking to simplify NLP tasks to enable efficient language understanding using BERT. A basic understanding of NLP concepts and deep learning is required to get the best out of this book.
What you will learn
Understand the transformer model from the ground up
Find out how BERT works and pre-train it using masked language model (MLM) and next sentence prediction (NSP) tasks
Get hands-on with BERT by learning to generate contextual word and sentence embeddings
Fine-tune BERT for downstream tasks
Get to grips with ALBERT, RoBERTa, ELECTRA, and SpanBERT models
Get the hang of the BERT models based on knowledge distillation
Understand cross-lingual models such as XLM and XLM-R
The simplest explanation of Transformers I ever found. I think Kdnuggets article on Transformers and this book provide a simple explanation of Transformers.
Amazon Verified review
ProTraderJan 29, 2023
1
The first chapter “Primer on Transformers” is more or less copy/pasted from a well-regarded blogger in the NLP space, just that this version is 10x less understandable.The chapter on fine-tuning BERT for a NER task is an absolute joke. The chapter literally says “let's learn how to fine-tune the pre-trained BERT model to perform NER”, followed by 10 generic sentences, without any code, and concludes. The lack of quality persists across all other chapters.The code formatting of the Kindle version is horrific. The code is written as standard text, without any formatting while being aligned like a newspaper column.
Amazon Verified review
Daniel SvobodaJun 27, 2022
5
This book gives a clear and succinct overview to BERT, starting with the basics of Transformers and how they revolutionized the industry to the development of BERT and its revolution in being able to get embeddings of sentences along with other features.Normally, such topics are difficult, but this book gives a layman's overview for the budding big data engineer or data scientist. With technology rapidly evolving, such explanations will be welcome to people who want to stay current.
Amazon Verified review
Colbert PhilippeJun 05, 2022
5
Excellent! A book on of the most active area of AI/ML. It's one of those books that is worth it weight in gold and even more.
Amazon Verified review
Mohd AzamMay 25, 2022
5
This is best book for advance NLP tasks. BERT is not more complex … recommended for NLP developers
Sudharsan Ravichandiran is a data scientist and artificial intelligence enthusiast. He holds a Bachelors in Information Technology from Anna University. His area of research focuses on practical implementations of deep learning and reinforcement learning including natural language processing and computer vision. He is an open-source contributor and loves answering questions on Stack Overflow.
Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.
If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.
Please Note: Packt eBooks are non-returnable and non-refundable.
Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:
You may make copies of your eBook for your own use onto any machine
You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website?
If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:
Register on our website using your email address and the password.
Search for the title by name or ISBN using the search option.
Select the title you want to purchase.
Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title.
Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook?
If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
To view your account details or to download a new copy of the book go to www.packtpub.com/account
Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.
You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.
What are the benefits of eBooks?
You can get the information you need immediately
You can easily take them with you on a laptop
You can download them an unlimited number of times
You can print them out
They are copy-paste enabled
They are searchable
There is no password protection
They are lower price than print
They save resources and space
What is an eBook?
Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.
When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.
For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.