code: private void init(){
  		try {
  			vnTextPro = new JVnTextPro();
  			
  			if (option.doSenToken)
  				vnTextPro.initSenTokenization();		
  			
  			if (option.doSenSeg)
  				vnTextPro.initSenSegmenter(option.modelDir+ File.separator + "jvnsensegmenter");
  			
  			if (option.doWordSeg)
  				vnTextPro.initSegmenter(option.modelDir + File.separator + "jvnsegmenter");
  			
  			if (option.doPosTagging)
  				vnTextPro.initPosTagger(option.modelDir + File.separator + "jvnpostag" + File.separator + "maxent");
  			
  			/* start session threads*/
  			pool = new Vector<Session>();
  			for (int i = 0; i < maxNSession; ++i){
  				Session w = new Session(vnTextPro);
  				w.start(); //start a pool of session threads at start-up time rather than on demand for efficiency 
  				pool.add(w);
  			}
  		}
  		catch (Exception e){
  			System.out.println("Error while initilizing service:" + e.getMessage());
  			e.printStackTrace();
  		}
  	}
docs: Inits the.