code: private void docTrain() throws IOException {
      // load training parameters file
      final String paramFile = this.parsedArguments.getString("params");
      final TrainingParameters params = IOUtils.loadTrainingParameters(paramFile);
      String outModel = null;
      if (params.getSettings().get("OutputModel") == null
          || params.getSettings().get("OutputModel").length() == 0) {
        outModel = Files.getNameWithoutExtension(paramFile) + ".bin";
        params.put("OutputModel", outModel);
      } else {
        outModel = Flags.getModel(params);
      }
      final DocumentClassifierTrainer docTrainer = new DocumentClassifierTrainer(
          params);
      final DocumentClassifierModel trainedModel = docTrainer.train(params);
      CmdLineUtil.writeModel("ixa-pipe-ml", new File(outModel), trainedModel);
    }
docs: /*
  Main access to the Document Classifer train functionalities.
  
  @throws IOException input output exception if problems with corpora