Exemple #1
0
 /**
  * Command line execution.
  *
  * @param args Command line arguments.
  * @throws Exception
  */
 public static void main(String[] args) throws Exception {
   MockContext.setInitialContext();
   GrobidProperties.getInstance();
   DateTrainer trainer = new DateTrainer();
   AbstractTrainer.runTraining(trainer);
   AbstractTrainer.runEvaluation(trainer);
   MockContext.destroyInitialContext();
 }
Exemple #2
0
 /** Initialize the batch. */
 protected static void initProcess() {
   try {
     MockContext.setInitialContext(gbdArgs.getPath2grobidHome(), gbdArgs.getPath2grobidProperty());
   } catch (final Exception exp) {
     System.err.println("Grobid initialisation failed: " + exp);
   }
   GrobidProperties.getInstance();
 }
 /**
  * Command line execution.
  *
  * @param args Command line arguments.
  * @throws Exception
  */
 public static void main(String[] args) throws Exception {
   MockContext.setInitialContext();
   GrobidProperties.getInstance();
   AbstractTrainer.runTraining(new PatentParserTrainer());
   MockContext.destroyInitialContext();
 }