protected final void createTagDictionary ( final String dictPath ) { if ( ! dictPath . equalsIgnoreCase ( Flags . DEFAULT_DICT_PATH ) ) { try { getPosTaggerFactory ( ) . setTagDictionary ( getPosTaggerFactory ( ) . createTagDictionary ( new File ( dictPath ) ) ) ; } catch ( final IOException e ) { throw new TerminateToolException ( - 1 , "IO error while loading POS Dictionary: " + e . getMessage ( ) , e ) ; } } }
Create a tag dictionary with the dictionary contained in the dictPath .