Updated preprocessing mapreduce with the new dictionary API