public boolean initSegmenter ( String modelDir ) { System . out . println ( "Initilize JVnSegmenter ..." ) ; System . out . println ( modelDir ) ; vnSegmenter = new CRFSegmenter ( ) ; try { vnSegmenter . init ( modelDir ) ; } catch ( Exception e ) { System . out . println ( "Error while initializing JVnSegmenter" ) ; vnSegmenter = null ; return false ; } //initialize taggerData return true ; }
Initialize the word segmetation for Vietnamese .