parse data to use lda algrothm.