Error while adding aliases to KnowledgeBase while training Entity Linker #10924
-
|
Hi!I am training a custom Entity Linker component and creating a Knowledge base for the same using the following code: where Now I get the following error while trying to add them: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The |
Beta Was this translation helpful? Give feedback.
The
entitiesargument must be the same length as the theprobabilitiesargument. So if yourqidshas a length of two then yourprobabilitiesshould be[0.5, 0.5]or something, not just[0.5].