com.hankcs.hanlp.seg
类 Config

java.lang.Object
  继承者 com.hankcs.hanlp.seg.Config

public class Config
extends Object

分词器配置项


字段摘要
 boolean 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()
          更新命名实体识别总开关
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

indexMode

public boolean indexMode
是否是索引分词(合理地最小分割)


nameRecognize

public boolean nameRecognize
是否识别中国人名


translatedNameRecognize

public boolean translatedNameRecognize
是否识别音译人名


japaneseNameRecognize

public boolean japaneseNameRecognize
是否识别日本人名


placeRecognize

public boolean placeRecognize
是否识别地名


organizationRecognize

public boolean organizationRecognize
是否识别机构


useCustomDictionary

public boolean useCustomDictionary
是否加载用户词典


speechTagging

public boolean speechTagging
词性标注


ner

public boolean ner
命名实体识别是否至少有一项被激活


offset

public boolean offset
是否计算偏移量


numberQuantifierRecognize

public boolean numberQuantifierRecognize
是否识别数字和量词


threadNumber

public int threadNumber
并行分词的线程数

构造方法详细信息

Config

public Config()
方法详细信息

updateNerConfig

public void updateNerConfig()
更新命名实体识别总开关



Copyright © 2014–2015 鐮佸啘鍦�/a>. All rights reserved.