Machine Learning Methods for Stylometry