com.hankcs.hanlp
类 HanLP.Config

java.lang.Object
  继承者 com.hankcs.hanlp.HanLP.Config
包容类:
HanLP

public static final class HanLP.Config
extends Object

库的全局配置,既可以用代码修改,也可以通过hanlp.properties配置(按照 变量名=值 的形式)


字段摘要
static String BiGramDictionaryPath
          2元语法词典路径
static String CharTablePath
          字符正规化表(全角转半角,繁体转简体)
static String CharTypePath
          字符类型对应表
static String CoreDictionaryPath
          核心词典路径
static String CoreDictionaryTransformMatrixDictionaryPath
          核心词典词性转移矩阵路径
static String CoreStopWordDictionaryPath
          停用词词典路径
static String CoreSynonymDictionaryDictionaryPath
          同义词词典路径
static String CRFDependencyModelPath
          CRF依存模型
static String CRFSegmentModelPath
          CRF分词模型
static String[] CustomDictionaryPath
          用户自定义词典路径
static boolean DEBUG
          开发模式
static String HMMSegmentModelPath
          HMM分词模型
static String JapanesePersonDictionaryPath
          日本人名词典路径
static String MaxEntModelPath
          最大熵-依存关系模型
static String NNParserModelPath
          神经网络依存模型路径
static boolean Normalization
          是否执行字符正规化(繁体->简体,全角->半角,大写->小写),切换配置后必须删CustomDictionary.txt.bin缓存
static String OrganizationDictionaryPath
          地名词典路径
static String OrganizationDictionaryTrPath
          地名词典转移矩阵路径
static String PersonDictionaryPath
          人名词典路径
static String PersonDictionaryTrPath
          人名词典转移矩阵路径
static String PinyinDictionaryPath
          拼音词典路径
static String PlaceDictionaryPath
          地名词典路径
static String PlaceDictionaryTrPath
          地名词典转移矩阵路径
static boolean ShowTermNature
          分词结果是否展示词性
static String SYTDictionaryPath
          声母韵母语调词典
static String TraditionalChineseDictionaryPath
          繁简词典路径
static String TranslatedPersonDictionaryPath
          音译人名词典
static String WordNatureModelPath
          词-词性-依存关系模型
 
构造方法摘要
HanLP.Config()
           
 
方法摘要
static void enableDebug()
          开启调试模式(会降低性能)
static void enableDebug(boolean enable)
          开启调试模式(会降低性能)
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

DEBUG

public static boolean DEBUG
开发模式


CoreDictionaryPath

public static String CoreDictionaryPath
核心词典路径


CoreDictionaryTransformMatrixDictionaryPath

public static String CoreDictionaryTransformMatrixDictionaryPath
核心词典词性转移矩阵路径


CustomDictionaryPath

public static String[] CustomDictionaryPath
用户自定义词典路径


BiGramDictionaryPath

public static String BiGramDictionaryPath
2元语法词典路径


CoreStopWordDictionaryPath

public static String CoreStopWordDictionaryPath
停用词词典路径


CoreSynonymDictionaryDictionaryPath

public static String CoreSynonymDictionaryDictionaryPath
同义词词典路径


PersonDictionaryPath

public static String PersonDictionaryPath
人名词典路径


PersonDictionaryTrPath

public static String PersonDictionaryTrPath
人名词典转移矩阵路径


PlaceDictionaryPath

public static String PlaceDictionaryPath
地名词典路径


PlaceDictionaryTrPath

public static String PlaceDictionaryTrPath
地名词典转移矩阵路径


OrganizationDictionaryPath

public static String OrganizationDictionaryPath
地名词典路径


OrganizationDictionaryTrPath

public static String OrganizationDictionaryTrPath
地名词典转移矩阵路径


TraditionalChineseDictionaryPath

public static String TraditionalChineseDictionaryPath
繁简词典路径


SYTDictionaryPath

public static String SYTDictionaryPath
声母韵母语调词典


PinyinDictionaryPath

public static String PinyinDictionaryPath
拼音词典路径


TranslatedPersonDictionaryPath

public static String TranslatedPersonDictionaryPath
音译人名词典


JapanesePersonDictionaryPath

public static String JapanesePersonDictionaryPath
日本人名词典路径


CharTypePath

public static String CharTypePath
字符类型对应表


CharTablePath

public static String CharTablePath
字符正规化表(全角转半角,繁体转简体)


WordNatureModelPath

public static String WordNatureModelPath
词-词性-依存关系模型


MaxEntModelPath

public static String MaxEntModelPath
最大熵-依存关系模型


NNParserModelPath

public static String NNParserModelPath
神经网络依存模型路径


CRFSegmentModelPath

public static String CRFSegmentModelPath
CRF分词模型


HMMSegmentModelPath

public static String HMMSegmentModelPath
HMM分词模型


CRFDependencyModelPath

public static String CRFDependencyModelPath
CRF依存模型


ShowTermNature

public static boolean ShowTermNature
分词结果是否展示词性


Normalization

public static boolean Normalization
是否执行字符正规化(繁体->简体,全角->半角,大写->小写),切换配置后必须删CustomDictionary.txt.bin缓存

构造方法详细信息

HanLP.Config

public HanLP.Config()
方法详细信息

enableDebug

public static void enableDebug()
开启调试模式(会降低性能)


enableDebug

public static void enableDebug(boolean enable)
开启调试模式(会降低性能)

参数:
enable -


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