Machine learning tasks on text files