public String printResult() {
		StringBuilder sb = new StringBuilder();
		DecimalFormat df = new DecimalFormat("#.###");

		for (int i = 0; i < docs.length; i++) {
			System.out.print("{");
			for (Map.Entry<String, Double> entry: docs[i].getTfMap().entrySet()) {
				System.out.print(entry.getKey() + "=" + df.format(entry.getValue()) + " ");
			}
			System.out.println("}\n");
			double[] tfVector = docs[i].getTfVector();
			for (int j = 0; j < tfVector.length; j++) {
				String num = (tfVector[j] == 0 ? "0    " : df.format(tfVector[j])); 
				sb.append(num).append(", ");
			}
			sb.append(docs[i].getId());
			sb.append("\n");
		}
		return sb.toString();

	}