transfer log message from chinese to english (#746)

This commit is contained in:
Howard 2019-12-19 15:31:05 +08:00 committed by Medcl
parent 5f53f1a5bf
commit 4619effa15
2 changed files with 6 additions and 6 deletions

View File

@ -57,7 +57,7 @@ class DictSegment implements Comparable<DictSegment>{
DictSegment(Character nodeChar){ DictSegment(Character nodeChar){
if(nodeChar == null){ if(nodeChar == null){
throw new IllegalArgumentException("参数为空异常,字符不能为空"); throw new IllegalArgumentException("node char cannot be empty");
} }
this.nodeChar = nodeChar; this.nodeChar = nodeChar;
} }

View File

@ -294,7 +294,7 @@ public class Dictionary {
*/ */
public static Dictionary getSingleton() { public static Dictionary getSingleton() {
if (singleton == null) { if (singleton == null) {
throw new IllegalStateException("词典尚未初始化请先调用initial方法"); throw new IllegalStateException("ik dict has not been initialized yet, please call initial method first.");
} }
return singleton; return singleton;
} }
@ -419,7 +419,7 @@ public class Dictionary {
List<String> lists = getRemoteWords(location); List<String> lists = getRemoteWords(location);
// 如果找不到扩展的字典则忽略 // 如果找不到扩展的字典则忽略
if (lists == null) { if (lists == null) {
logger.error("[Dict Loading] " + location + "加载失败"); logger.error("[Dict Loading] " + location + " load failed");
continue; continue;
} }
for (String theWord : lists) { for (String theWord : lists) {
@ -518,7 +518,7 @@ public class Dictionary {
List<String> lists = getRemoteWords(location); List<String> lists = getRemoteWords(location);
// 如果找不到扩展的字典则忽略 // 如果找不到扩展的字典则忽略
if (lists == null) { if (lists == null) {
logger.error("[Dict Loading] " + location + "加载失败"); logger.error("[Dict Loading] " + location + " load failed");
continue; continue;
} }
for (String theWord : lists) { for (String theWord : lists) {
@ -562,7 +562,7 @@ public class Dictionary {
} }
void reLoadMainDict() { void reLoadMainDict() {
logger.info("重新加载词典..."); logger.info("start to reload ik dict.");
// 新开一个实例加载词典减少加载过程对当前词典使用的影响 // 新开一个实例加载词典减少加载过程对当前词典使用的影响
Dictionary tmpDict = new Dictionary(configuration); Dictionary tmpDict = new Dictionary(configuration);
tmpDict.configuration = getSingleton().configuration; tmpDict.configuration = getSingleton().configuration;
@ -570,7 +570,7 @@ public class Dictionary {
tmpDict.loadStopWordDict(); tmpDict.loadStopWordDict();
_MainDict = tmpDict._MainDict; _MainDict = tmpDict._MainDict;
_StopWords = tmpDict._StopWords; _StopWords = tmpDict._StopWords;
logger.info("重新加载词典完毕..."); logger.info("reload ik dict finished.");
} }
} }