Entity Linker Returning NER label instead of KB label #9569
-
I've just trained the Entity Linker and am now testing it against unseen text. I noticed that the ent.label_ property is showing my NER label output instead of WikiData's Q-ids.
I've prepared the training data as per the Entity Linker's jupyter notebook example. Here is the output of the first row of my training data.
I've tried swapping the "DIAGNOSIS" in the entities' array's tuple to Q-id and the result is the same. Have i misconfigured my training data or should i look else where to address this ? Any help will be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is normal. If you look at the provided evaluate script, you'll notice that the Q IDs are in the |
Beta Was this translation helpful? Give feedback.
This is normal. If you look at the provided evaluate script, you'll notice that the Q IDs are in the
kb_id_
field, not thelabel_
field. It looks like all yourkb_id_
s areNIL
, which is a separate problem.