train classifier from web interface