code: public static void main(String[] args) throws java.io.IOException {
      if (args.length == 0) {
        System.err.println("Usage: Parse -fun head_rules < train_parses");
        System.err.println("Reads training parses (one-sentence-per-line) and displays parse structure.");
        System.exit(1);
      }
      int ai=0;
      if (args[0].equals("-fun")) {
        Parse.useFunctionTags(true);
        ai++;
      }
      HeadRules rules = new ch.epfl.bbp.shaded.opennlp.tools.lang.english.HeadRules(args[ai]);
      java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));
      for (String line = in.readLine(); line != null; line = in.readLine()) {
        Parse p = Parse.parseParse(line);
        p.updateHeads(rules);
        p.show();
        //p.showCodeTree();
      }
    }
docs: Reads training parses (one-sentence-per-line) and displays parse structure.
  @param args The head rules files.
  @throws java.io.IOException If the head rules file can not be opened and read.