public class Config extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
boolean |
forceCustomDictionary
用户词典高优先级
|
int |
indexMode
是否是索引分词(合理地最小分割)
|
boolean |
japaneseNameRecognize
是否识别日本人名
|
boolean |
nameRecognize
是否识别中国人名
|
boolean |
ner
命名实体识别是否至少有一项被激活
|
boolean |
numberQuantifierRecognize
是否识别数字和量词
|
boolean |
offset
是否计算偏移量
|
boolean |
organizationRecognize
是否识别机构
|
boolean |
placeRecognize
是否识别地名
|
boolean |
speechTagging
词性标注
|
int |
threadNumber
并行分词的线程数
|
boolean |
translatedNameRecognize
是否识别音译人名
|
boolean |
useCustomDictionary
是否加载用户词典
|
| 构造器和说明 |
|---|
Config() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
updateNerConfig()
更新命名实体识别总开关
|
public int indexMode
public boolean nameRecognize
public boolean translatedNameRecognize
public boolean japaneseNameRecognize
public boolean placeRecognize
public boolean organizationRecognize
public boolean useCustomDictionary
public boolean forceCustomDictionary
public boolean speechTagging
public boolean ner
public boolean offset
public boolean numberQuantifierRecognize
public int threadNumber
Copyright © 2014–2018 码农场. All rights reserved.