Query spelling correction using multi-task learning