private void seqTrain ( ) 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 SequenceLabelerTrainer nercTrainer = new SequenceLabelerTrainer ( params ) ; final SequenceLabelerModel trainedModel = nercTrainer . train ( params ) ; CmdLineUtil . writeModel ( "ixa-pipe-ml" , new File ( outModel ) , trainedModel ) ; }
Main access to the Sequence Labeler train functionalities .