@@ -0,0 +1,1921 @@
+package cn.edu.kmust.seanlp.segmenter.DAT;%0A%0Aimport java.util.Arrays;%0Aimport java.util.LinkedList;%0Aimport java.util.List;%0A%0Aimport cn.edu.kmust.seanlp.Config;%0Aimport cn.edu.kmust.seanlp.POS.BurmesePOS;%0Aimport cn.edu.kmust.seanlp.POS.POS;%0Aimport cn.edu.kmust.seanlp.collection.trie.DATrie;%0Aimport cn.edu.kmust.seanlp.dictionary.language.BurmeseCommonDictionary;%0Aimport cn.edu.kmust.seanlp.segmenter.AbstractBurmeseSegmenter;%0Aimport cn.edu.kmust.seanlp.segmenter.domain.Term;%0A%0A/**%0A * %E4%BD%BF%E7%94%A8DoubleArrayTrie%E5%AE%9E%E7%8E%B0%E7%9A%84%E6%9C%80%E9%95%BF%E5%88%86%E8%AF%8D%E5%99%A8%0A * %0A * @author  Zhao Shiyu%0A *%0A */%0Apublic class BurmeseCommonDATSegmenter extends AbstractBurmeseSegmenter %7B%0A%09%0A%09private final POS pos = new BurmesePOS();%0A%09%0A%09/**%0A%09 * %E6%9E%84%E9%80%A0%E5%88%86%E8%AF%8D%E5%99%A8%EF%BC%8C%E5%90%8C%E6%97%B6%E9%85%8D%E7%BD%AE%E8%AF%AD%E8%A8%80%0A%09 */%0A%09public BurmeseCommonDATSegmenter() %7B%0A%09%09super();%0A%09%09Config.BaseConf.useCustomDictionary = false;%0A%09%7D%0A%0A%09@Override%0A%09protected List%3CTerm%3E segmentSentence(char%5B%5D sentence) %7B%0A%09%09final int%5B%5D wordNet = new int%5Bsentence.length%5D;%0A%09%09Arrays.fill(wordNet, 1);%0A//%09%09final Nature%5B%5D natureArray = Config.BaseConf.speechTagging ? new Nature%5BcharArray.length%5D%09: null;%0A%09%09DATrie%3CString%3E.Searcher searcher = BurmeseCommonDictionary.burmeseDictionary.dictionaryTrie.getSearcher(sentence, 0);%0A%09%09while (searcher.next()) %7B%0A%09%09%09int length = searcher.length;%0A%09%09%09if (length %3E wordNet%5Bsearcher.begin%5D) %7B%0A%09%09%09%09wordNet%5Bsearcher.begin%5D = length;%0A//%09%09%09%09if (Config.BaseConf.speechTagging) %7B%0A//%09%09%09%09%09natureArray%5Bsearcher.begin%5D = searcher.value.nature%5B0%5D;%0A//%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09List%3CTerm%3E termList = new LinkedList%3CTerm%3E();%0A%09%09for (int i = 0; i %3C wordNet.length;) %7B%0A//%09%09%09Term term = new Term(new String(charArray, i, wordNet%5Bi%5D), Config.BaseConf.speechTagging ? (natureArray%5Bi%5D == null ? Nature.WXXX%09: natureArray%5Bi%5D) : null);%0A%09%09%09Term term = new Term(new String(sentence, i, wordNet%5Bi%5D), null);%0A%09%09%09term.setOffset(i);%0A%09%09%09termList.add(term);%0A%09%09%09i += wordNet%5Bi%5D;%0A%09%09%7D%0A%09%09if (Config.BaseConf.speechTagging) %7B%0A%09%09%09termList = pos.speechTagging(termList);%0A%09%09%7D%0A%09%09return termList;%0A%09%7D%0A%0A%7D%0A

update Burmese common dictionary segmentation