How to change the label of an Entity? #5176
Replies: 1 comment
-
You're right that you can't easily change the The easiest work-around is by converting the
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've came across this example:
and it resulted in:
Tesla 0 5 CARDINAL
Elon Musk 10 19 PERSON
Wednesday 25 34 DATE
New York City 166 179 GPE
Bill de Blasio 196 210 PERSON
I tried to change the label for Tesla from CARDINAL to ORG. For this I tried: 1) create a new Span, however when adding to doc.ent, however it conflicts with the former one. I also tried to remove it but it seems that doc.ents is an object. Any suggestions on how do I make this change?
Which page or section is this issue related to?
https://spacy.io/usage/linguistic-features#named-entities
Beta Was this translation helpful? Give feedback.
All reactions