double getLowestBaseP(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 min = 0;
	    String worst = null;
	    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&&tt.score()<min){
	    		min = tt.score();
	    		worst = tt.toString();
	    	}
	    }
	   // System.out.println(worst);
		return min;
	}