Skip to content

Commit 4619eff

Browse files
howardhuanghuamedcl
authored andcommitted
transfer log message from chinese to english (infinilabs#746)
1 parent 5f53f1a commit 4619eff

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/java/org/wltea/analyzer/dic/DictSegment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class DictSegment implements Comparable<DictSegment>{
5757

5858
DictSegment(Character nodeChar){
5959
if(nodeChar == null){
60-
throw new IllegalArgumentException("参数为空异常,字符不能为空");
60+
throw new IllegalArgumentException("node char cannot be empty");
6161
}
6262
this.nodeChar = nodeChar;
6363
}

src/main/java/org/wltea/analyzer/dic/Dictionary.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)