public boolean init ( String modelDir ) { try { classifier = new Classification ( modelDir ) ; feaGen = new FeatureGenerator ( ) ; classifier . init ( ) ; return true ; } catch ( Exception e ) { System . out . println ( "Error while initilizing classifier: " + e . getMessage ( ) ) ; return false ; } }
Creates a new instance of JVnSenSegmenter .