Prepare data for probability merging