Text preprocessing aimed towards integrating with scikit-learn.