|
@@ -20,19 +20,19 @@ public class Configuration {
|
|
private Settings settings;
|
|
private Settings settings;
|
|
|
|
|
|
//是否启用智能分词
|
|
//是否启用智能分词
|
|
- private boolean useSmart;
|
|
|
|
|
|
+ private boolean useSmart;
|
|
|
|
|
|
//是否启用远程词典加载
|
|
//是否启用远程词典加载
|
|
- private boolean enableRemoteDict=false;
|
|
|
|
|
|
+ private boolean enableRemoteDict = false;
|
|
|
|
|
|
//是否启用小写处理
|
|
//是否启用小写处理
|
|
- private boolean enableLowercase=true;
|
|
|
|
|
|
+ private boolean enableLowercase = true;
|
|
|
|
|
|
|
|
|
|
@Inject
|
|
@Inject
|
|
- public Configuration(Environment env,Settings settings) {
|
|
|
|
|
|
+ public Configuration(Environment env, Settings settings) {
|
|
this.environment = env;
|
|
this.environment = env;
|
|
- this.settings=settings;
|
|
|
|
|
|
+ this.settings = settings;
|
|
|
|
|
|
this.useSmart = settings.get("use_smart", "false").equals("true");
|
|
this.useSmart = settings.get("use_smart", "false").equals("true");
|
|
this.enableLowercase = settings.get("enable_lowercase", "true").equals("true");
|
|
this.enableLowercase = settings.get("enable_lowercase", "true").equals("true");
|