double getAvgBaseP(String s){
		Annotation document = new Annotation(s);
	    pipeline.annotate(document);
	    List<CoreMap> sentences = document.get(SentencesAnnotation.class);
	    Tree t =sentences.get(0).get(TreeAnnotation.class);
	    List<Tree> list = t.postOrderNodeList();
	    double avg = 0;
	    int count =0;
	    ArrayList<Double> bottom = new ArrayList<Double>();
	    for(Tree tt:list){
	    	
	    	double sum =0;
	    	if (Double.isNaN(tt.score()))
	    		continue;
	    	List<Tree> children = tt.getChildrenAsList();
	    	boolean hasNaN = false;
	    	for(Tree ttt:children){
	    		if(Double.isNaN(ttt.score()) )
	    			hasNaN = true;
	    	}
	    	
	    	if (hasNaN&&tt.score()>-30){
	    		bottom.add(tt.score());
	    	}
	    }
	    Double[] bottoms = (Double[])bottom.toArray(new Double[0]);
	    Arrays.sort(bottoms);
	    double sum = 0;
	    for(int i=0;i<10;i++){
	    	sum+=bottoms[i];
	    	System.out.print(bottoms[i]);
	    }
	    System.out.println();
	    
	   // System.out.println(worst);
		return 1.0*sum/5;
	}