public void setForegroundCorpus(Documents docs) {
	    Counter scores = new Counter();
	    termScore = new HashMap<String, Double>();
	    double total = 0;
		for (Document doc : docs.documents) 
		{
			total += 1;
			for (String term:doc.getUniques()) {
				scores.add(term);
			}
		}
		for (Map.Entry<String, SingleCounter> e :  scores.counts.entrySet()) {
			double mt = e.getValue().value / total;			
			double bt = backgroundModel.get(e.getKey());
			termScore.put(e.getKey(), Math.max(0, mt * Math.log10(mt / bt)));
		}
	}