public boolean initPosTagger ( String modelDir ) { try { this . vnPosTagger = new MaxentTagger ( modelDir ) ; } catch ( Exception e ) { System . out . println ( "Error while initializing POS TAgger" ) ; vnPosTagger = null ; return false ; } return true ; }
Initialize the pos tagger for Vietnamese .