Hi all, how can I add logic to the pipeline that would allow me to override the NER result with the pattern match (EntityRuler) result, but only if the labels (entity types) are different? I am seeing a few cases where I would want to override with the EntityRuler, but not in all cases (a few cases the pattern match span is not as extensive and I miss some valuable info). Is this possible?
Would I use a custom function(component)? I can easily add the override flag, but that doesn't cover the cases I mentioned above. In my pipeline, I have tagger, parser, customer_ner_model, patter_matcher.