replace all corefs with the representative mentions