Let’s say my sentence contains two names and I have to recognize both based on the context. For example: Dr. Sample Person has concluded John Doe doesn’t have any serious illness. When I try this with SpacyNLP, SpacyTokenizer and SpacyFeaturizer, it tags both the names as doctor_name (whichever entity is placed first in the domain). I’ve defined both doctor_name and patient_name as PERSON in domain file.
So how do I recognize the names as different entities with NLU standalone.