process data and extract tf/idf feature