code: public static void main(String[] args) throws java.io.IOException {
      if (args.length == 0) {
        System.err.println("Usage: ChunkerME trainingFile modelFile");
        System.err.println();
        System.err.println("Training file should be one word per line where each line consists of a ");
        System.err.println("space-delimited triple of \"word pos outcome\".  Sentence breaks are indicated by blank lines.");
        System.exit(1);
      }
      java.io.File inFile = new java.io.File(args[0]);
      java.io.File outFile = new java.io.File(args[1]);
      GISModel mod;
      ch.epfl.bbp.shaded.opennlp.maxent.EventStream es = new ChunkerEventStream(new ch.epfl.bbp.shaded.opennlp.maxent.PlainTextByLineDataStream(new java.io.FileReader(inFile)));
      if (args.length > 3)
        mod = train(es, Integer.parseInt(args[2]), Integer.parseInt(args[3]));
      else
        mod = train(es, 100, 5);
  
      System.out.println("Saving the model as: " + args[1]);
      new ch.epfl.bbp.shaded.opennlp.maxent.io.SuffixSensitiveGISModelWriter(mod, outFile).persist();
    }
docs: Trains the chunker using the specified parameters. <br>
  Usage: ChunkerME trainingFile modelFile. <br>
  Training file should be one word per line where each line consists of a
  space-delimited triple of "word pos outcome".  Sentence breaks are indicated by blank lines.
  @param args The training file and the model file.
  @throws java.io.IOException When the specifed files can not be read.