NER - Finding entity's character positions #12942
-
How can we get individual entity's starting and ending char positions? doc.ents "start" and "end" gives the token positions.
Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
mattkallo
Aug 29, 2023
Replies: 1 comment 1 reply
-
Found the answer, incase anyone looking for same info.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
svlandeg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found the answer, incase anyone looking for same info.
print(ent.text, ent.start_char, ent.end_char)