修复单词拼写错误;

This commit is contained in:
Magese 2021-12-31 16:59:38 +08:00
parent 0c6560fe61
commit fff131a45a
3 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@ public interface Configuration {
* *
* @return String 量词词典路径 * @return String 量词词典路径
*/ */
String getQuantifierDicionary(); String getQuantifierDictionary();
/** /**
* 获取扩展字典配置路径 * 获取扩展字典配置路径

View File

@ -145,7 +145,7 @@ public class DefaultConfig implements Configuration {
* *
* @return String 量词词典路径 * @return String 量词词典路径
*/ */
public String getQuantifierDicionary() { public String getQuantifierDictionary() {
return PATH_DIC_QUANTIFIER; return PATH_DIC_QUANTIFIER;
} }

View File

@ -326,7 +326,7 @@ public class Dictionary {
// 建立一个量词典实例 // 建立一个量词典实例
_QuantifierDict = new DictSegment((char) 0); _QuantifierDict = new DictSegment((char) 0);
// 读取量词词典文件 // 读取量词词典文件
InputStream is = this.getClass().getClassLoader().getResourceAsStream(cfg.getQuantifierDicionary()); InputStream is = this.getClass().getClassLoader().getResourceAsStream(cfg.getQuantifierDictionary());
if (is == null) { if (is == null) {
throw new RuntimeException("Quantifier Dictionary not found!!!"); throw new RuntimeException("Quantifier Dictionary not found!!!");
} }