public static void main(String args[]){
    	Map<String, Map<String, Double>> allTfMap=allTf(SamplePath);
    	Map<String, Double> idf=idf(allSegsMap);
    	Map<String, Map<String, Double>> tfIdfMap=tfIdf(allTfMap,idf);
    	Set<String>classifies=tfIdfMap.keySet();
    	for(String classsfy:classifies){
    		Map<String,Double>tfIdf=tfIdfMap.get(classsfy);
    		List<Double>tfIdfList=new ArrayList<Double>();
    		Set<String>words=tfIdf.keySet();
    		for(String word:words){
    			tfIdfList.add(tfIdf.get(word));
    		}
    		Collections.sort(tfIdfList);
    		Double value=tfIdfList.get(tfIdfList.size()-370);
    		System.out.println("*************"+tfIdfList.size());
    		int j=0;
    		for(String word:words){
    			if(tfIdf.get(word)>=value&&!keywords.containsKey(word)){
    				keywords.put(word,idfMap.get(word));
    				
    				j++;
    			}
    			if(j==300)
    				break;
    		}
    		
    		
    		
    	}
    	System.out.println(keywords.size());
    	Set<String>keyword=keywords.keySet();
    	for(String word:keyword){
    		//System.out.println(word);
    		System.out.println(word+"="+keywords.get(word));
    	}
    	
   	
    }