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
entities
argument must be the same length as the theprobabilities
argument. So if yourqids
has a length of two then yourprobabilities
should be[0.5, 0.5]
or something, not just[0.5]
.