public void setForegroundCorpus(Documents docs) {
	    Counter scores = new Counter();
	    termScore = new HashMap<String, Double>();
            Set<String> stopwords = new HashSet<String>();
            FileReader fr;
			try {
				fr = new FileReader("stopwords.txt");
			
            BufferedReader br = new BufferedReader(fr);
            String line;
            while ((line = br.readLine()) != null) {
            	stopwords.add(line.trim()); 
            }
            br.close();
			} catch (FileNotFoundException e1) {
				// TODO Auto-generated catch block
				e1.printStackTrace();
			} catch (IOException e1) {
				// TODO Auto-generated catch block
				e1.printStackTrace();
			}

	    double total = 0;
		for (Document doc : docs.documents) 
		{
			for (String term:doc.getTerms()) {
                          if (stopwords.contains(term)  || !StringUtils.isAlpha(term)) continue;
				total += 1;
				scores.add(term);
			}
		}
		
		for (Map.Entry<String, SingleCounter> e :  scores.counts.entrySet()) {
			double mt = e.getValue().value / total;			
			termScore.put(e.getKey(), mt);
		}
	}