@@ -294,7 +294,7 @@ private String getDictRoot() {
294294 */
295295 public static Dictionary getSingleton () {
296296 if (singleton == null ) {
297- throw new IllegalStateException ("词典尚未初始化,请先调用initial方法 " );
297+ throw new IllegalStateException ("ik dict has not been initialized yet, please call initial method first. " );
298298 }
299299 return singleton ;
300300 }
@@ -419,7 +419,7 @@ private void loadRemoteExtDict() {
419419 List <String > lists = getRemoteWords (location );
420420 // 如果找不到扩展的字典,则忽略
421421 if (lists == null ) {
422- logger .error ("[Dict Loading] " + location + "加载失败 " );
422+ logger .error ("[Dict Loading] " + location + " load failed " );
423423 continue ;
424424 }
425425 for (String theWord : lists ) {
@@ -518,7 +518,7 @@ private void loadStopWordDict() {
518518 List <String > lists = getRemoteWords (location );
519519 // 如果找不到扩展的字典,则忽略
520520 if (lists == null ) {
521- logger .error ("[Dict Loading] " + location + "加载失败 " );
521+ logger .error ("[Dict Loading] " + location + " load failed " );
522522 continue ;
523523 }
524524 for (String theWord : lists ) {
@@ -562,15 +562,15 @@ private void loadPrepDict() {
562562 }
563563
564564 void reLoadMainDict () {
565- logger .info ("重新加载词典.. ." );
565+ logger .info ("start to reload ik dict ." );
566566 // 新开一个实例加载词典,减少加载过程对当前词典使用的影响
567567 Dictionary tmpDict = new Dictionary (configuration );
568568 tmpDict .configuration = getSingleton ().configuration ;
569569 tmpDict .loadMainDict ();
570570 tmpDict .loadStopWordDict ();
571571 _MainDict = tmpDict ._MainDict ;
572572 _StopWords = tmpDict ._StopWords ;
573- logger .info ("重新加载词典完毕.. ." );
573+ logger .info ("reload ik dict finished ." );
574574 }
575575
576576}
0 commit comments