Tekstiviesti: Optimization for machine learning