https://github.com/HealthNLPorg/ctae_pre_annotation/blob/0072e04a72f72ff0d1ad0960a4f0e33821867188/python_utils/merge_pre_annotations.py#L92