package cn.edu.kmust.seanlp.tokenizer;

import java.util.List;

import cn.edu.kmust.seanlp.segmenter.Segmenter;
import cn.edu.kmust.seanlp.segmenter.DAT.BurmeseDoubleArrayTrieSegmenter;
import cn.edu.kmust.seanlp.segmenter.domain.Term;

/**
 * 缅甸语DoubleArrayTrie最长分词器
 * 
 * @author Zhao Shiyu
 *
 */
public class BurmeseDATTokenizer {
	
	/**
	 * 预置分词器
	 */	
	public final static Segmenter datBurmeseSegment = new BurmeseDoubleArrayTrieSegmenter();
	
	/**
	 * 分词
	 * @param text
	 * @return
	 */
	public static List<Term> segment(String text) {
		return datBurmeseSegment.segment(text);
	}

}

@@ -97,32 +97,100 @@
 nter.Segmenter;%0A
+import cn.edu.kmust.seanlp.segmenter.DAT.BurmeseCommonDATSegmenter;%0A
 import cn.edu.km
@@ -239,32 +239,32 @@
 yTrieSegmenter;%0A
-
 import cn.edu.km
@@ -510,16 +510,106 @@
 nter();%0A
+%09public final static Segmenter datCommBurmeseSegment = new BurmeseCommonDATSegmenter();%0A%09%0A
 %09%0A%09/**%0A%09
@@ -696,16 +696,16 @@
 text) %7B%0A
-
 %09%09return
@@ -740,12 +740,118 @@
 ext);%0A%09%7D
+%0A%09%0A%09public static List%3CTerm%3E segByCommDict(String text) %7B%0A%09%09return datCommBurmeseSegment.segment(text);%0A%09%7D
 %0A%0A%7D%0A

update Burmese segmentation