public static void main(String[] args) {
    AuToBI autobi = new AuToBI();
    autobi.init(args);

    PitchAccentDetectionClassifierCollection pacc = new PitchAccentDetectionClassifierCollection();

    try {
      String classifier_stem = autobi.getParameter("classifier_stem");
      String correction_stem = autobi.getParameter("correction_stem");
      String out_file = autobi.getParameter("out_file");

      for (int low = 0; low < 20; ++low) {
        for (int high = low + 1; high <= 20; ++high) {
          AuToBIClassifier classifier =
              ClassifierUtils.readAuToBIClassifier(classifier_stem + low + "_" + high + ".model");
          AuToBIClassifier corrector =
              ClassifierUtils.readAuToBIClassifier(correction_stem + low + "_" + high + ".model");

          pacc.setPitchAccentDetector(low, high, classifier);
          pacc.setCorrectionClassifier(low, high, corrector);
        }
      }
      
      AuToBIUtils.log("writing collection to: " + out_file);
      FileOutputStream fos;
      ObjectOutputStream out;
      try {
        fos = new FileOutputStream(out_file);
        out = new ObjectOutputStream(fos);
        out.writeObject(pacc);
        out.close();
      } catch (FileNotFoundException e) {
        e.printStackTrace();
      } catch (IOException e) {
        e.printStackTrace();
      }
    } catch (AuToBIException e) {
      e.printStackTrace();
    }
  }