The estimation of semiparametric generalized linear models