写道//Java实现逆向最大匹配中文分词算法publicclassSplitChineseCharacter{publicstaticvoidmain(String[]args){Stringinput="太好了,今天是星期六啊";//要匹配的字符串newSplit(input).start();}}classSplit{privateString[]dictionary={"今天","是","星期","星期六"};//词典privateStringinput=null;publicSplit...
查看全文