We take this approach by modifying the test set so that each PER and GPE (person and geopolitical entity) named entity is different from those seen in training.
we ensure that there is no leakage of PER and GPE named entities from the training set into the test set.