类 com.hankcs.hanlp.dictionary.CoreDictionary.Attribute
的使用

使用 CoreDictionary.Attribute 的软件包
com.hankcs.hanlp.dictionary   
com.hankcs.hanlp.dictionary.nr   
com.hankcs.hanlp.seg.common   
com.hankcs.hanlp.seg.Other   
 

com.hankcs.hanlp.dictionaryCoreDictionary.Attribute 的使用
 

类型参数类型为 CoreDictionary.Attributecom.hankcs.hanlp.dictionary 中的字段
static DoubleArrayTrie<CoreDictionary.Attribute> CustomDictionary.dat
           
static BinTrie<CoreDictionary.Attribute> CustomDictionary.trie
          用于储存用户动态插入词条的二分trie树
static DoubleArrayTrie<CoreDictionary.Attribute> CoreDictionary.trie
           
 

返回 CoreDictionary.Attributecom.hankcs.hanlp.dictionary 中的方法
static CoreDictionary.Attribute CoreDictionary.Attribute.create(String natureWithFrequency)
           
static CoreDictionary.Attribute CoreDictionary.get(int wordID)
          获取条目
static CoreDictionary.Attribute CustomDictionary.get(String key)
          查单词
static CoreDictionary.Attribute CoreDictionary.get(String key)
          获取条目
 

返回变量类型为 CoreDictionary.Attribute 的类型的 com.hankcs.hanlp.dictionary 中的方法
static LinkedList<Map.Entry<String,CoreDictionary.Attribute>> CustomDictionary.commonPrefixSearch(char[] chars, int begin)
          前缀查询
static LinkedList<Map.Entry<String,CoreDictionary.Attribute>> CustomDictionary.commonPrefixSearch(String key)
          前缀查询
static BinTrie<CoreDictionary.Attribute> CustomDictionary.getTrie()
          已过时。 谨慎操作,有可能废弃此接口
 

类型变量类型为 CoreDictionary.Attributecom.hankcs.hanlp.dictionary 中的方法参数
static boolean CustomDictionary.load(String path, Nature defaultNature, TreeMap<String,CoreDictionary.Attribute> map)
          加载用户词典(追加)
static void CustomDictionary.parseText(char[] text, AhoCorasickDoubleArrayTrie.IHit<CoreDictionary.Attribute> processor)
          解析一段文本(目前采用了BinTrie+DAT的混合储存形式,此方法可以统一两个数据结构)
 

com.hankcs.hanlp.dictionary.nrCoreDictionary.Attribute 的使用
 

声明为 CoreDictionary.Attributecom.hankcs.hanlp.dictionary.nr 中的字段
static CoreDictionary.Attribute PersonDictionary.ATTRIBUTE
           
static CoreDictionary.Attribute NRConstant.ATTRIBUTE
          本词典专注的词的属性
 

com.hankcs.hanlp.seg.commonCoreDictionary.Attribute 的使用
 

声明为 CoreDictionary.Attributecom.hankcs.hanlp.seg.common 中的字段
 CoreDictionary.Attribute Vertex.attribute
          词的属性,谨慎修改属性内部的数据,因为会影响到字典
如果要修改,应当new一个Attribute
 

返回 CoreDictionary.Attributecom.hankcs.hanlp.seg.common 中的方法
 CoreDictionary.Attribute Vertex.getAttribute()
          获取词的属性
 

参数类型为 CoreDictionary.Attributecom.hankcs.hanlp.seg.common 中的构造方法
Vertex(char realWord, CoreDictionary.Attribute attribute)
           
Vertex(String realWord, CoreDictionary.Attribute attribute)
          真实词与编译词相同时候的构造函数
Vertex(String realWord, CoreDictionary.Attribute attribute, int wordID)
           
Vertex(String word, String realWord, CoreDictionary.Attribute attribute)
          最复杂的构造函数
Vertex(String word, String realWord, CoreDictionary.Attribute attribute, int wordID)
           
 

类型变量类型为 CoreDictionary.Attributecom.hankcs.hanlp.seg.common 中的构造方法参数
Vertex(Map.Entry<String,CoreDictionary.Attribute> entry)
          通过一个键值对方便地构造节点
 

com.hankcs.hanlp.seg.OtherCoreDictionary.Attribute 的使用
 

返回变量类型为 CoreDictionary.Attribute 的类型的 com.hankcs.hanlp.seg.Other 中的方法
 AhoCorasickDoubleArrayTrie<CoreDictionary.Attribute> AhoCorasickDoubleArrayTrieSegment.getTrie()
           
 

类型变量类型为 CoreDictionary.Attributecom.hankcs.hanlp.seg.Other 中的方法参数
 void AhoCorasickDoubleArrayTrieSegment.setTrie(AhoCorasickDoubleArrayTrie<CoreDictionary.Attribute> trie)
           
 



Copyright © 2014–2015 码农场. All rights reserved.