public void initInference ( ) { if ( lambda == null ) { System . out . println ( "numFetures: " + feaGen . numFeatures ( ) ) ; lambda = new double [ feaGen . numFeatures ( ) + 1 ] ; // reading feature weights from the feature list for ( int i = 0 ; i < feaGen . features . size ( ) ; i ++ ) { Feature f = ( Feature ) feaGen . features . get ( i ) ; lambda [ f . idx ] = f . wgt ; } } }
Inits the inference .