public void normalizeTFs(Map<String,Map<String, Double>> tfs,Document d, Query q)
	{
		//For each field
		for (String field : this.TFTYPES){
			//Get field parameter
			double B = 0.0;
			if (field.equals("url")){
				B = burl;
			} else if (field.equals("header")){
				B = bheader;
			} else if (field.equals("body")){
				B = bbody;
			} else if (field.equals("title")){
				B = btitle;
			} else if (field.equals("anchor")){
				B = banchor;
			}
			//For each term
			for (String term : q.words){
				//Normalize
				if (tfs.get(field).containsKey(q)){
					double denom = 1 + B*(lengths.get(d).get(field)/avgLengths.get(field)-1);
					tfs.get(field).put(term,tfs.get(field).get(term)/denom);
				}
			}
		}
	}