Learning Social Networks from Text Data using Covariate Information