public static HMMPOSTagger getDefault ( ) { if ( DEFAULT_TAGGER == null ) { try { ObjectInputStream ois = new ObjectInputStream ( HMMPOSTagger . class . getResourceAsStream ( "/smile/nlp/pos/hmmpostagger.model" ) ) ; DEFAULT_TAGGER = ( HMMPOSTagger ) ois . readObject ( ) ; ois . close ( ) ; } catch ( Exception ex ) { logger . error ( "Failed to load /smile/nlp/pos/hmmpostagger.model" , ex ) ; } } return DEFAULT_TAGGER ; }
Returns the default English POS tagger .