Archive | Hugging Face Transformers

aaron-burden-CKlHKtCJZKk-unsplash

Text Summarization with DistillBart Model

Text summarization represents a sophisticated evolution of text generation, requiring a deep understanding of content and context. With encoder-decoder transformer models like DistilBart, you can now create summaries that capture the essence of longer text while maintaining coherence and relevance. In this tutorial, you’ll discover how to implement text summarization using DistilBart. You’ll learn through […]

Continue Reading
peter-herrmann-hNS-Ks56Bzc-unsplash

Text Generation using Contrastive Search with GPT-2 Model

Text generation is one of the most fascinating applications of deep learning. With the advent of large language models like GPT-2, we can now generate human-like text that’s coherent, contextually relevant, and surprisingly creative. In this tutorial, you’ll discover how to implement text generation using GPT-2. You’ll learn through hands-on examples that you can run […]

Continue Reading
jayphen-simpson-8jNATlZXhgk-unsplash

Auto-Completion Style Text Generation with GPT-2 Model

Generating gibberish text is a simple programming exercise for beginners. But completing a sentence meaningfully would require a lot of work. The landscape of auto-completion technology has transformed dramatically with the introduction of neural approaches. With Hugging Face’s transformers library, implementing text completion is only a few lines of code. In this comprehensive tutorial, you […]

Continue Reading
jon-tyson-566CgCRSNCk-unsplash

How to Do Named Entity Recognition (NER) with a BERT Model

Named Entity Recognition (NER) is one of the fundamental building blocks of natural language understanding. When humans read text, we naturally identify and categorize named entities based on context and world knowledge. For instance, in the sentence “Microsoft’s CEO Satya Nadella spoke at a conference in Seattle,” we effortlessly recognize the organizational, personal, and geographical […]

Continue Reading

Machine Learning Mastery is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Visit our corporate website to learn more about our mission and team.