preprocess_judgements function

Pre-process the data