类 com.hankcs.hanlp.collection.dartsclone.Pair
的使用

使用 Pair 的软件包
com.hankcs.hanlp.collection.dartsclone   
com.hankcs.hanlp.dictionary.py   
com.hankcs.hanlp.model.maxent   
 

com.hankcs.hanlp.collection.dartsclonePair 的使用
 

返回变量类型为 Pair 的类型的 com.hankcs.hanlp.collection.dartsclone 中的方法
 List<Pair<Integer,Integer>> DoubleArray.commonPrefixSearch(byte[] key, int offset, int maxResults)
          Returns the keys that begins with the given key and its corresponding values.
 ArrayList<Pair<String,V>> DartMap.commonPrefixSearch(String key)
           
 ArrayList<Pair<String,V>> DartMap.commonPrefixSearch(String key, int offset, int maxResults)
          前缀查询
 

com.hankcs.hanlp.dictionary.pyPair 的使用
 

返回 Paircom.hankcs.hanlp.dictionary.py 中的方法
static Pair<List<Pinyin>,List<Boolean>> String2PinyinConverter.convert2Pair(String complexText, boolean removeTone)
          将混合文本转为拼音
 

com.hankcs.hanlp.model.maxentPair 的使用
 

返回 Paircom.hankcs.hanlp.model.maxent 中的方法
 Pair<String,Double> MaxEntModel.predictBest(String[] context)
          预测概率最高的分类
 

返回变量类型为 Pair 的类型的 com.hankcs.hanlp.model.maxent 中的方法
 List<Pair<String,Double>> MaxEntModel.predict(Collection<String> context)
          预测分布
 List<Pair<String,Double>> MaxEntModel.predict(String[] context)
          预测分布
 



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