Have identical start but different end positions

hi every one:)

i have several lookup tables. that an item in a lookup could be a sub word item in another one.

because of this, i get this error: ValueError: Entities '{‘entity’: ‘ProhibitedName’, ‘start’: 0, ‘end’: 10, ‘value’: 'sarah zia ‘, ‘confidence’: 1.0, ‘extractor’: ‘FlashTextEntityExtractor’}’ and '{‘entity’: ‘PeopleName’, ‘start’: 0, ‘end’: 10, ‘confidence_entity’: 0.3217441141605377, ‘value’: 'sarah ‘, ‘extractor’: ‘FlashTextEntityExtractor’}’ have identical start but different end positions

Sarah is an item in lookup1 nad Sarah zia is an item is lookup2

how can i fix this?

is it possible that i just match the exact entities not subwords?