The current script merges adjacent entities (i.e. no word in between) if they share the same label.
So B-label I-label B-label O becomes B-label I-label I-label O.
Instead of comparing the labels, the scripts now compares the annotation objects directly
The current script merges adjacent entities (i.e. no word in between) if they share the same label. So
B-label I-label B-label O
becomesB-label I-label I-label O
. Instead of comparing the labels, the scripts now compares the annotation objects directly