code: private static String getVectorString(Vector vector) {
          StringBuffer buffer = new StringBuffer();
          int[] indices = vector.getIndices();
          double[] values = vector.getValues();
          for (int i = 0; i < indices.length; i++) {
              buffer.append(" ").append(indices[i]).append(":").append(values[i]);
          }
          return buffer.toString();
      }
docs: returns a vector i.e sequence of feature:value needs to have a pointer to
  the Lexicon used during the creation of the document here we generate the
  scores, taking into account the data in the lexicon