1 public String SentenceGerneration(String pattern, ArrayList<String> candSlotList, ArrayList<Argument> argList){ 2 ArrayList<String> candSentenceList = new ArrayList<String>(); 3 for(String candSlot : candSlotList) 4 candSentenceList.add(FillInPattern(pattern,candSlot,argList)); 5 return SelectBestSolutions(candSentenceList,argList); 6 }