public Map<String, Double> findTermFrequency(ArrayList<String> tokens){

		Map<String, Integer> map = new HashMap<String, Integer>();
		String[] StopWords = DEFAULT_STOPWORDS.split(" ");
		ArrayList<String> stopArrayList = new ArrayList<String>(Arrays.asList(StopWords));

		for(String word: tokens){
			int i=0;
			if(!stopArrayList.contains(word)){

				if(!map.containsKey(word)){

					addToTokenList(word);
					map.put(word, 0);
				}

				map.put(word, map.get(word)+1);
				int lol = +map.get(word)+1;


			}
		}
		Set<Entry<String, Integer>> set = map.entrySet(); 
		Map<String, Double> map2 = new HashMap<String, Double>();
		for (Map.Entry<String, Integer> me : set) { 
			double value = me.getValue();
			double antallOrd = tokens.size();
			double snitt = value/antallOrd;
			map2.put(me.getKey(),snitt);
		}
		return map2;
	}