private HashMap<String, Double> getDocumentVector(Document d){
		HashMap<String, Double> dVec = new HashMap<String, Double>();
		String text = d.getText().toLowerCase();
		String[] words = text.split(" ");
		for(String s : words){
			String a = s.replaceAll("[^a-z0-9]", "");
			if(!dVec.containsKey(a) && !Util.stopwords.contains(a)){
				dVec.put(a, 0.0);
			}
			else if(dVec.containsKey(a))
				dVec.put(a, dVec.get(a) + 1.0);
		}
		return dVec;
	}