nl_tokens: Send the given dataset to svm_perf_learn .
pl_tokens: function ( dataset ) { if ( this . debug ) console . log ( "trainBatch start" ) ; var timestamp = new Date ( ) . getTime ( ) + "_" + <mask> . pid var learnFile = svmcommon . writeDatasetToFile ( dataset , this . bias , /*binarize=*/ true , this . model_file_prefix + "_" + timestamp , "SvmPerf" , FIRST_FEATURE_NUMBER ) ; var modelFile = learnFile . replace ( / [.]learn / , ".model" ) ; var command = "svm_perf_learn " + this . learn_args + " " + learnFile + " " + modelFile ; if ( this . debug ) console . log ( "running " + command ) ; console . log ( command ) var result = execSync ( command ) ; if ( result . code > 0 ) { console . dir ( result ) ; console . log ( fs . readFileSync ( learnFile , 'utf-8' ) ) ; throw new Error ( "Failed to execute: " + command ) ; } this . setModel ( fs . readFileSync ( modelFile , "utf-8" ) ) ; if ( this . debug ) console . log ( "trainBatch end" ) ; }