use integer to index term in feature vector