You need to subtract the sentence start position from the entity start positions:

for ent in doc.ents:
    print(ent.text, ent.start_char-ent.sent.start_char, ent.end_char-ent.sent.start_char, ent.label_)
#                                 ^^^^^^^^^^^^^^^^^^^^              ^^^^^^^^^^^^^^^^^^^^

Output:

Apple 0 5 ORG
U.K. 27 31 GPE
$1 billion 44 54 MONEY
Apple 0 5 ORG
Credit Card 26 37 ORG
Answer from Wiktor Stribiżew on Stack Overflow
🌐
Merriam-Webster
merriam-webster.com › sentences › entity
Examples of 'ENTITY' in a Sentence | Merriam-Webster
September 13, 2025 - 'Entity' in a sentence: One division of the company was broken off as a separate entity.
🌐
Collins Dictionary
collinsdictionary.com › us › sentences › english › entity
Example sentences with ENTITY | Collins English Sentences
For shareholders, the benefits will accrue only if the company is divided into 2 separate entities.
Discussions

python - How to get Index of an Entity in a Sentence in Spacy? - Stack Overflow
I want to know if there is an elegant way to get the index of an Entity with respect to a Sentence. I know I can get the index of an Entity in a string using ent.start_char and ent.end_char, but that More on stackoverflow.com
🌐 stackoverflow.com
Please show me example sentences with entity.
I realised there was an unknown entity causing an impact on the results of my research. |An entity is something that exists by itself. It is often used when talking about businesses and organisations. "A corporation is a common type of business entity". More on hinative.com
🌐 hinative.com
2
April 1, 2020
entity or entities | WordReference Forums
Hi, Two of my editors do not seem to agree whether it should be entity or entities in the following sentence. Could someone help me settle the question? and if possible, give me the reasons why? (I`m not saying which one I think it should be, just because Ì don`t want it said that I influenced... More on forum.wordreference.com
🌐 forum.wordreference.com
March 8, 2006
I really like the sentence names that some of the entities have! Are there popular fan-made ones for the ones that don't have them in canon?

I had a little go at trying to make some of my own

The Corruption: Get it out.

The Flesh: Meat is me. (This one does show up in canon, but not as a name)

The Lonely: Is anyone there?

More on reddit.com
🌐 r/TheMagnusArchives
25
126
February 11, 2023
🌐
YourDictionary
sentence.yourdictionary.com › home › entity
Examples of "Entity" in a Sentence | YourDictionary.com
The rules of kinship largely determined status with its correlative rights and obligations, supplied the place of contract and of laws affecting the ownership, disposition and devolution of property, constituting the clan an organic, selfcontained entity, a political, social and mutual insurance copartnership.
🌐
Merriam-Webster
merriam-webster.com › dictionary › entity
ENTITY Definition & Meaning - Merriam-Webster
1 week ago - 2025 Heinrich hopes the commission approves the integration and wants both entities to be funded until the end of the 2027 fiscal year. —Ishani Desai, Sacbee.com, 4 Dec. 2025 Parents, guardians, an employer or another entity could add more funds to a child's account. —Lauren Young, USA Today, 4 Dec. 2025 See All Example Sentences for entity
🌐
Sentence Dictionary
sentencedict.com › entity.html
Entity in a sentence (esp. good sentence like quote, proverb...)
July 24, 2020 - 186+4 sentence examples: 1. The whole country is a single entity. 2. Church and empire were fused in a single entity. 3. The mind exists as a separate entity . 4. A company is a separate legal entity. 5. The country is no longer one political entity.
Find elsewhere
🌐
WORDS IN A SENTENCE
wordsinasentence.com › entity-in-a-sentence
Entity: In a Sentence – WORDS IN A SENTENCE
April 18, 2015 - Examples of Entity in a sentence · Just because they are twins does not mean they are the same entity. 🔊 · Wanting to build his own entity, the man left his job and started his own company. 🔊 · The scientist discovered an otherwise unknown entity and looked to determine its origin.
🌐
ScienceDirect
sciencedirect.com › science › article › abs › pii › S0306457323000894
Planarized sentence representation for nested named entity recognition - ScienceDirect
March 27, 2023 - Recognizing named entities in a sentence is usually implemented as a token labeling task, which assigns a tag for each token in a sentence to indicate its semantic role in a named entity (NE). The problem with sequence models is that it is difficult to recognize nested named entities in a sentence, where a token may belong to different named entities simultaneously.
🌐
HiNative
hinative.com › entity
Example sentences with, and the definition and usage of "Entity" | HiNative
April 1, 2020 - Overall, the term "entity" is used to describe something that exists and can be considered as a separate and distinguishable unit, whether it is a physical, conceptual, or legal entity. ... A: That sentence is very confusing with no context, but I think it means that "her name means she is one whole person and not someone with many different sides".
🌐
Collins Dictionary
collinsdictionary.com › us › dictionary › english › entity
ENTITY definition in American English | Collins English Dictionary
3 senses: 1. something having real or distinct existence; a thing, esp when considered as independent of other things 2..... Click for more definitions.
Published   December 20, 2017
🌐
Justia
dictionary.justia.com › entity
entity Definition, Meaning & Usage | Justia Legal Dictionary
As a separate legal entity, the corporation was able to acquire assets under its own name.
🌐
WordReference
forum.wordreference.com › english only › english only
entity or entities | WordReference Forums
March 8, 2006 - Many thanks, P Whenever the Contractor consists of two or more persons, companies or any other legal entities (entity), they shall be jointly responsible for compliance with all of the terms and conditions of this Contract . ... Thanks, Lance, that`s what was finally agreed. Cheers, P ... I'm not native English speaker, but if I understand this sentence right there's a question of: - two or more persons, - two or more companies, - two or more other legal entities, so the 'entities' must be plural.
🌐
Dictionary.com
dictionary.com › browse › entity
ENTITY Definition & Meaning | Dictionary.com
1 week ago - Entity definition: something that has a real existence; thing.. See examples of ENTITY used in a sentence.
🌐
Lak12
lak12.com › sentence › word
Use entity in a sentence | K12 Language Arts
ENTITY in sentences. 1: The whole country is a single entity. 2: Church and empire were fused in a single entity.
🌐
YourDictionary
sentence.yourdictionary.com › home › entities
Examples of "Entities" in a Sentence | YourDictionary.com
Discovery in these various directions then led physicians to regard fever and inflammation not as separable entities, but as fluctuating symptomgroups, due to swervings of function from the normal balance under contingent forces.