Semiparametric canonical correlation analysis