Sponsored
Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows.
Buy New
-37% $41.60
FREE delivery Thursday, June 11
Ships from: Amazon.com
Sold by: Amazon.com
$41.60 with 37 percent savings
List Price: $65.99
FREE delivery Thursday, June 11
Or Prime members get FREE delivery Tomorrow, June 7. Order within 1 hr 34 mins. Join Prime
In Stock
$$41.60 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$41.60
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Shipper / Seller
Amazon.com
Amazon.com
Shipper / Seller
Amazon.com
Returns
FREE 30-day refund/replacement
FREE 30-day refund/replacement
Quick refund
Usually issued within 24 hours. See exceptions
FREE return
At least one free return option available.
Convenient dropoff
At any of our 50,000 US locations.
See return policy
Gift options
Available at checkout
Available at checkout This item is a gift. Change
At checkout, you can add a custom message, a gift receipt for easy returns and have the item gift-wrapped
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$35.00
FREE delivery June 12 - 18. Details
Or fastest delivery June 10 - 12. Details
Only 1 left in stock - order soon.
$$41.60 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$41.60
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Ships from and sold by JJ resales.
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

  • Natural Language Processing with Transformers, Revised Edition

Follow the authors

Get new release updates & improved recommendations
See all
Something went wrong. Please try your request again later.

Natural Language Processing with Transformers, Revised Edition

4.6 out of 5 stars (266)

{"desktop_buybox_group_1":[{"displayPrice":"$41.60","priceAmount":41.60,"currencySymbol":"$","integerValue":"41","decimalSeparator":".","fractionalValue":"60","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"lNz9K2CSc7d3FrQoz1p6a6tnqnPl5RVmvN31hWYUpdO6nCdEuRPcipr0Z0KeCG%2FEvXvqFWl3Os7LaI%2F8bYnmfIp9I1bLNMDuIbEPc5mPrgeWvmDkQh3KoSgQ0qKgfx6sm%2FKFWif1vpTekHm9BgRfZQ%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$35.00","priceAmount":35.00,"currencySymbol":"$","integerValue":"35","decimalSeparator":".","fractionalValue":"00","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"lNz9K2CSc7d3FrQoz1p6a6tnqnPl5RVmneo4n%2FIaP2qShHffMCGWy7WqlmJTTqT7mNhO7C%2Faf1Gtrep4yyYGV6qWNtL6VrDeWEhNrZd%2F%2FCzkbtBu8NKtnd98CoIHJ5286S3WOTHrft15W4ZWqamKa6QFD5J8AYrv%2Fj1bLOMzmxDH%2FuZLN%2BYU%2BlbBVqZEjDiz","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

Since their introduction in 2017, transformers have quickly become the dominant architecture for achieving state-of-the-art results on a variety of natural language processing tasks. If you're a data scientist or coder, this practical book -now revised in full color- shows you how to train and scale these large models using Hugging Face Transformers, a Python-based deep learning library.

Transformers have been used to write realistic news stories, improve Google Search queries, and even create chatbots that tell corny jokes. In this guide, authors Lewis Tunstall, Leandro von Werra, and Thomas Wolf, among the creators of Hugging Face Transformers, use a hands-on approach to teach you how transformers work and how to integrate them in your applications. You'll quickly learn a variety of tasks they can help you solve.

  • Build, debug, and optimize transformer models for core NLP tasks, such as text classification, named entity recognition, and question answering
  • Learn how transformers can be used for cross-lingual transfer learning
  • Apply transformers in real-world scenarios where labeled data is scarce
  • Make transformer models efficient for deployment using techniques such as distillation, pruning, and quantization
  • Train transformers from scratch and learn how to scale to multiple GPUs and distributed environments

Sponsored

Frequently bought together

This item: Natural Language Processing with Transformers, Revised Edition
$41.60
Get it as soon as Thursday, Jun 11
In Stock
Ships from and sold by Amazon.com.
+
$47.69
Get it as soon as Thursday, Jun 11
In Stock
Ships from and sold by Amazon.com.
+
$49.24
Get it as soon as Thursday, Jun 11
In Stock
Ships from and sold by Amazon.com.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
Choose items to buy together.

Customers also bought or read

Loading...

From the brand


From the Publisher

Natural Language Processing with Transformers, Revised Edition

From the Preface

Who Is This Book For?

This book is written for data scientists and machine learning engineers who may have heard about the recent breakthroughs involving transformers, but are lacking an in-depth guide to help them adapt these models to their own use cases. The book is not meant to be an introduction to machine learning, and we assume you are comfortable programming in Python and has a basic understanding of deep learning frameworks like PyTorch and TensorFlow. We also assume you have some practical experience with training models on GPUs. Although the book focuses on the PyTorch API of Transformers, Chapter 2 shows you how to translate all the examples to TensorFlow.

What You Will Learn

The goal of this book is to enable you to build your own language applications. To that end, it focuses on practical use cases, and delves into theory only where necessary. The style of the book is hands-on, and we highly recommend you experiment by running the code examples yourself.

The book covers all the major applications of transformers in NLP by having each chapter (with a few exceptions) dedicated to one task, combined with a realistic use case and dataset. Each chapter also introduces some additional concepts. Here’s a high-level overview of the tasks and topics we’ll cover:

- Chapter 1, Hello Transformers, introduces transformers and puts them into context. It also provides an introduction to the Hugging Face ecosystem.

- Chapter 2, Text Classification, focuses on the task of sentiment analysis (a common text classification problem) and introduces the Trainer API.

- Chapter 3, Transformer Anatomy, dives into the Transformer architecture in more depth, to prepare you for the chapters that follow.

- Chapter 4, Multilingual Named Entity Recognition, focuses on the task of identifying entities in texts in multiple languages (a token classification problem).

- Chapter 5, Text Generation, explores the ability of transformer models to generate text, and introduces decoding strategies and metrics.

- Chapter 6, Summarization, digs into the complex sequence-to-sequence task of text summarization and explores the metrics used for this task.

- Chapter 7, Question Answering, focuses on building a review-based question answering system and introduces retrieval with Haystack.

- Chapter 8, Making Transformers Efficient in Production, focuses on model performance. We’ll look at the task of intent detection (a type of sequence classification problem) and explore techniques such a knowledge distillation, quantization, and pruning.

- Chapter 9, Dealing with Few to No Labels, looks at ways to improve model performance in the absence of large amounts of labeled data. We’ll build a GitHub issues tagger and explore techniques such as zero-shot classification and data augmentation.

- Chapter 10, Training Transformers from Scratch, shows you how to build and train a model for autocompleting Python source code from scratch. We’ll look at dataset streaming and large-scale training, and build our own tokenizer.

- Chapter 11, Future Directions, explores the challenges transformers face and some of the exciting new directions that research in this area is going into.

Editorial Reviews

About the Author

Lewis Tunstall is a data scientist at Swisscom, focused on building machine learning powered applications in the domains of natural language processing and time series. A former theoretical physicist, he has over 10 years experience translating complex subject matter to lay audiences and has taught machine learning to university students at both the graduate and undergraduate levels.

Leandro von Werra is a data scientist at Swiss Mobiliar where he leads the company's natural language processing efforts to streamline and simplify processes for customers and employees. He has experience working across the whole machine learning stack, and is the creator of a popular Python library that combines Transformers with reinforcement learning. He also teaches data science and visualisation at the Bern University of Applied Sciences.

Thomas Wolf is Chief Science Officer and co-founder of HuggingFace. His team is on a mission to catalyze and democratize NLP research. Prior to HuggingFace, Thomas gained a Ph.D. in physics, and later a law degree. He worked as a physics researcher and a European Patent Attorney.

Product details

  • Publisher ‏ : ‎ O'Reilly Media
  • Publication date ‏ : ‎ July 5, 2022
  • Edition ‏ : ‎ 1st
  • Language ‏ : ‎ English
  • Print length ‏ : ‎ 406 pages
  • ISBN-10 ‏ : ‎ 1098136799
  • ISBN-13 ‏ : ‎ 978-1098136796
  • Item Weight ‏ : ‎ 7.4 ounces
  • Dimensions ‏ : ‎ 7 x 1 x 9.25 inches
  • Best Sellers Rank: #73,670 in Books (See Top 100 in Books)
  • Customer Reviews:
    4.6 out of 5 stars (266)

About the authors

Follow authors to get new release updates, plus improved recommendations.
Sponsored

Customer reviews

4.6 out of 5 stars
266 global ratings
Sponsored
Great book with details
5 out of 5 stars
Great book with details
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

    Translated by Amazon
    See original
  • 5 out of 5 stars
    Thorough
    Reviewed in the United States on August 3, 2024
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    A very thorough book that introduces the key components of transformer based neural networks along with fully formed examples for common tasks.

    One person found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Irreplaceable in my work
    Reviewed in the United States on November 10, 2022
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    This book is awesome. The explanations are not only clear and concise, it is accompanied by code that is also very readable and playing with it makes all the difference. There are many explanations & code for Transformers around, but rarely do they come together so perfectly. And it's also a lot of fun to read/play with the concepts.

    6 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    First chapter already paid off
    Reviewed in the United States on July 3, 2023
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Need not look further, must have, absolutely the best, etc. Just buy this when you are a data scientist and into NLP. Sure, by all means buy more learning material. This one you won’t regret.

    5 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Good explanations
    Reviewed in the United States on June 15, 2023
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    The authors are good at explaining things I’ve been reading about in several different places yet hadnt been able to understand.

    4 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Magnífico
    Reviewed in the United States on October 17, 2023
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Muy buen libro para aprender acerca de transformers, muy bien escrito

    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
    Translated from Spanish by Amazon
    See original
  • 4 out of 5 stars
    Ink stains in the cover
    Reviewed in the United States on September 7, 2022
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Cover of the book is not in the best shape. There are ink stains.

    Ink stains in the cover
    4 out of 5 stars
    Ink stains in the cover
    Reviewed in the United States on September 7, 2022

    Cover of the book is not in the best shape. There are ink stains.

    2 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Great book with details
    Reviewed in the United States on October 15, 2022
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.
    Great book with details
    5 out of 5 stars
    Great book with details
    Reviewed in the United States on October 15, 2022

    One person found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Excellent book for NLP and transformers
    Reviewed in the United States on January 12, 2024
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    "Natural Language Processing with Transformers" is a highly informative and well-structured book. It offers a clear and concise overview of transformers in NLP, making complex concepts accessible to a broad range of readers. The authors effectively balance theory with practical examples (all run seamlessly and are easy to follow), which is helpful for both beginners and experienced practitioners. The real-world NLP applications provided are particularly useful. Overall, it's a solid resource for anyone interested in understanding and applying transformers in the field of NLP.

    One person found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.

Top reviews from other countries

    Translated by Amazon
    See original
  • 4 out of 5 stars
    Recommended
    Reviewed in Saudi Arabia on March 9, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 3 out of 5 stars
    Going to fast on concepts, too much code
    Reviewed in Germany on June 22, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Too hand-on. I am developer, I needed less code but more explanation on fundamentals repeated over the book without dedicated explanations like hidden. While reading the book I was always wondering « why is he doing this ». May be interesting for ML engineers which lacks only the code part of transformers.

    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Era para presente
    Reviewed in Brazil on July 27, 2024
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Chegou bem embalado, direitinho e dentro do prazo. Em ótimo estado e a pessoa que recebeu o presente, amou

    Sending feedback...
    Thanks, we'll investigate in the next few days.
    Translated from Portuguese by Amazon
    See original
  • 5 out of 5 stars
    Amazing!
    Reviewed in Mexico on October 7, 2022
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Content is all I needed to start coding my first transformers 😁

    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Amazing book by equally amazing author
    Reviewed in France on February 28, 2023
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I'm glad I purchasers this book as it is one of the best ones on the topic. I highly recommend it.

    Sending feedback...
    Thanks, we'll investigate in the next few days.