I have been training an entity linker with Spacy which has 6,000 entities from Wikidata.
The training data contains of 30,000 sentences.
I'm following the notebook provided by Spacy https://github.com/explosion/projects/blob/v3/tutorials/nel_emerson/notebooks/notebook_video.ipynb
The training goes fine and the accuracy seems pretty good, until I test the model out on a string that's clearly incorrect. Such "barack obama is a French born florist living in Spain with 36 cats and two hamsters", but the model predicts the person in this string as https://www.wikidata.org/wiki/Q76
I've tried adding additional parameters into the config, such as n_sents
entity_linker = nlp.add_pipe("entity_linker", config={"incl_prior": False, "n_sents": 6}, last=True)
Is there a way to improve this? it would be better to return NIL instead of a wrong answer. Or is there a confidence score than can be output?