Hey @ghadeermobasher there are several strategies that you can use to merge the entities and my suggestion would be to inspect the implementation in the token-classification pipeline 1. As you can see in the docstring 2 there are quite some subtleties associated with merging entities correctly (depends on the language, tokenizer etc)!