code: public static void main(String[] args) {
      Treebank treebank = new DiskTreebank();
      CategoryWordTag.suppressTerminalDetails = true;
      treebank.loadPath(args[0]);
      final HeadFinder chf = new CollinsHeadFinder();
      treebank.apply(new TreeVisitor() {
        public void visitTree(Tree pt) {
          pt.percolateHeads(chf);
          pt.pennPrint();
          System.out.println();
        }
      });
    }
docs: Go through trees and determine their heads and print them.
  Just for debuggin'. <br>
  Usage: <code>
  java edu.stanford.nlp.trees.CollinsHeadFinder treebankFilePath
  </code>
  
  @param args The treebankFilePath