use the format as liblinear  input file and get the tf idf value.