Spacy Misaligned Entities #11498
-
Hi All, This is regarding:- "UserWarning: [W030] Some entities could not be aligned in the text "はい . シマムラ ヒロユキ 様 、 本日 は ありがとう ござい ます ." with entities "[(5, 13, 'PERSON')]". Use Is it possible to get all the misaligned data points in a form of a list? So that one can go through each text and correct this warning. Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
What code are you using that gives that error, and what spaCy version are you using? It looks like you're using v2. There's no single function that shows every example of misaligned text, but you can just check the output for In v3 there's some more versatile ways of handling this, though if you're having alignment issues you need to look at why. In this case it looks like your annotation is |
Beta Was this translation helpful? Give feedback.
-
Hi All, I have written a function that can help you to know whether the data point is misaligned.
This function will return a data frame with "Text, Entities, and Label" columns. The Label column will have 0 and 1 as a value. 0 will indicate that the text is misaligned. Input: Spacy training format Thank you, |
Beta Was this translation helpful? Give feedback.
Hi All,
I have written a function that can help you to know whether the data point is misaligned.
This function will return a data frame with "Text, Entities, and Label" columns. The Labe…