protected void appendWordFeatures ( IWord word ) { //add the pinyin to the pool if ( config . APPEND_CJK_PINYIN && config . LOAD_CJK_PINYIN && word . getPinyin ( ) != null ) { IWord pinyin = new Word ( word . getPinyin ( ) , IWord . T_CJK_PINYIN ) ; pinyin . setPosition ( word . getPosition ( ) ) ; pinyin . setEntity ( word . getEntity ( ) ) ; wordPool . add ( pinyin ) ; } //add the synonyms words to the pool if ( config . APPEND_CJK_SYN && config . LOAD_CJK_SYN && word . getSyn ( ) != null ) { SegKit . appendSynonyms ( wordPool , word ) ; } }
check and append the pinyin and the synonyms words of the specified word