if [ $# -ne 3 ]; then
  echo "The number of parameter is: $#" 1>&2
  echo "Need to type 3 parameters:
        1.folder directory: word_data or char_data
        2.data type: celltype or antigen
        3.'n' of ngram: from 1 to 10 " 1>&2
  exit 1
fi

dir=$1
type=$2
gram_n=$3

#Use n-gram model to generate training feature vectors according to trainX_feature_file
#and generate test feature vectors according to training feature vectors
python3 text-ngram.py $dir $type $gram_n
#Output: c10_testX_human_$type_ngramfeature.txt, c10_trainX_human_$type_ngramfeature.txt

#Transform output feature files to libsvm template
#in carrot: ./text-ngram/trans_svm.cpp
