mod trainer
modifications for paragraph vector based on cross entropy error