Class SegKit


  • public class SegKit
    extends Object
    abstract segmentor kit class
    Author:
    chenxin
    • Constructor Detail

      • SegKit

        public SegKit()
    • Method Detail

      • appendSynonyms

        public static void appendSynonyms​(SegmenterConfig config,
                                          LinkedList<IWord> wordPool,
                                          IWord wd)
        quick interface to do the synonyms word append You got check if the specified word has any synonyms first
        Parameters:
        config -
        wordPool -
        wd -
      • appendPinyin

        public static void appendPinyin​(SegmenterConfig config,
                                        LinkedList<IWord> wordPool,
                                        IWord wd)
        Quick interface to do the pinyin word append. You got to check if the specified word has the pinyin attribute
        Parameters:
        config -
        wordPool -
        wd -