String downcaseWordsStr = Settings.get(Settings.downcaseWords); if (Boolean.valueOf(downcaseWordsStr).booleanValue()) downcaseWords(headTree); findConstituents(chart, headTree);
Set best = collectBest(topRankedItem); findConstituents(chart, best, headTree);
  public static void findConstituents(String chartFilename,				      Sexp goldTree) {    try {      ObjectInputStream ois =	new ObjectInputStream(new FileInputStream(chartFilename));      Chart chart = (Chart)ois.readObject();      SexpList origWords = (SexpList)ois.readObject();      Sexp newGoldTree = Language.training().preProcess(goldTree);      System.err.println(Util.prettyPrint(newGoldTree));      HeadTreeNode headTree = new HeadTreeNode(newGoldTree);      String downcaseWordsStr = Settings.get(Settings.downcaseWords);      if (Boolean.valueOf(downcaseWordsStr).booleanValue())	downcaseWords(headTree);      findConstituents(chart, headTree);    }    catch (FileNotFoundException fnfe) {      System.err.println(fnfe);    }    catch (StreamCorruptedException sce) {      System.err.println(sce);    }    catch (ClassNotFoundException cnfe) {      System.err.println(cnfe);    }    catch (IOException ioe) {      System.err.println(ioe);    }  }