A helper module for encode the feature vector into numeric feature