Accurate bundle matching and generation via multitask learning with partially shared parameters