Skip to content

Do I need to add an id to my patterns if my EntityRuler only has one label? #9424

Discussion options

You must be logged in to vote

Hi @Vfgandara,

From the documentation alone I couldn't understand exactly what's the purpose of this ID... in this case where all my patterns will assign the same label to the Spans.

IDs are great if you want to link entities or disambiguate them further. Just like in the San Francisco example, most people will call it "san fran," "san francisco," or "sf", but they're all just the same entity--San Francisco.

If you think that this information (i.e., how entities are linked / disambiguated) won't be needed for any downstream tasks, then it's fine to leave the id parameter empty.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by svlandeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / ner Feature: Named Entity Recognizer
2 participants