Package org.lionsoul.jcseg.segmenter
Class SegKit
- java.lang.Object
-
- org.lionsoul.jcseg.segmenter.SegKit
-
public class SegKit extends Object
abstract segmentor kit class- Author:
- chenxin
-
-
Constructor Summary
Constructors Constructor Description SegKit()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidappendPinyin(SegmenterConfig config, LinkedList<IWord> wordPool, IWord wd)Quick interface to do the pinyin word append.static voidappendSynonyms(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
-
-
-
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-
-
-