Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Mastering spaCy

You're reading from   Mastering spaCy Build structured NLP solutions with custom components and models powered by spacy-llm

Arrow left icon
Product type Paperback
Published in Feb 2025
Publisher Packt
ISBN-13 9781835880463
Length 238 pages
Edition 2nd Edition
Languages
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Déborah Mesquita Déborah Mesquita
Author Profile Icon Déborah Mesquita
Déborah Mesquita
Duygu Altınok Duygu Altınok
Author Profile Icon Duygu Altınok
Duygu Altınok
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Part 1: Getting Started with spaCy
2. Chapter 1: Getting Started with spaCy FREE CHAPTER 3. Chapter 2: Core Operations with spaCy 4. Part 2: Advanced Linguistic and Semantic Analysis
5. Chapter 3: Extracting Linguistic Features 6. Chapter 4: Mastering Rule-Based Matching 7. Chapter 5: Extracting Semantic Representations with spaCy Pipelines 8. Chapter 6: Utilizing spaCy with Transformers 9. Part 3: Customizing and Integrating NLP Workflows
10. Chapter 7: Enhancing NLP Tasks Using LLMs with spacy-llm 11. Chapter 8: Training an NER Component with Your Own Data 12. Chapter 9: Creating End-to-End spaCy Workflows with Weasel 13. Chapter 10: Training an Entity Linker Model with spaCy 14. Chapter 11: Integrating spaCy with Third-Party Libraries 15. Index 16. Other Books You May Enjoy

Understanding the entity linking task

Entity linking is the task of identifying the entity mentioned and linking it to the corresponding entry in each knowledge base. For example, the Washington entity can refer to the person George Washington or the US state. With entity linking or entity resolution, our goal is to map the entity to the correct real-world representation. As spaCy’s documentation says, the EntityLinker spaCy architecture requires three main components:

  • A knowledge base (KB) to store the unique identifiers, synonyms, and prior probabilities
  • A candidate generation step to produce the likely identifiers
  • A machine learning model to select the most likely ID from the list of candidates

In KB, each textual mention (alias) is represented as a Candidate object that may or may not be linked to an entity. A prior probability is assigned to each candidate (alias, entity) pair.

In the spaCy EntityLinker architecture, first, we initialize a KB with...

lock icon The rest of the chapter is locked
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mastering spaCy
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 AU $24.99/month. Cancel anytime
Modal Close icon
Modal Close icon