Custom training Entity Linker component #10713
-
Hello. So I am working on building an Entity Linker component, to use with my custom trained NER. I have gone through the documentation, the video tutorial along with the ner-emersons example project. I had a few doubts about the same:
Any inputs will be helpful. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The current implementation of the Entity Linker requires this. However, the candidate generation is controlled by a function, so you can customize that function if you want. For example, rather than requiring exact matches, you could use edit distance or something.
If you don't already have a list of aliases, it can be useful to create one by extracting values from data you've manually annotated.
If most of your aliases are unambiguous - they refer to only one entity - then there won't be a meaningful difference. The NEL component is useful in situations like the Emerson examples in the demo project. The component learns to distinguish between different things with the same name. Learning different names for the same thing is a related but distinct problem.
As stated in the documentation (and I think you found out by experimentation), the default candidate generator is case-sensitive. You can define a custom case generator that's case insensitive by copying the code for the default one and modifying it slightly. |
Beta Was this translation helpful? Give feedback.
The current implementation of the Entity Linker requires this. However, the candidate generation is controlled by a function, so you can customize that function if you want. For example, rather than requiring exact matches, you could use edit distance or something.
If you don't already have a list of aliases, it can be useful to create one by extracting valu…