Text this: From classical machine learning to emerging foundation models