com.hankcs.hanlp.model.trigram.frequency
类 Probability
java.lang.Object
com.hankcs.hanlp.model.trigram.frequency.Probability
- 所有已实现的接口:
- ICacheAble
public class Probability
- extends Object
- implements ICacheAble
概率统计工具
- 作者:
- hankcs
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
d
public BinTrie<Integer> d
Probability
public Probability()
exists
public boolean exists(String key)
getsum
public int getsum()
get
public int get(char[]... keyArray)
get
public int get(char... key)
freq
public double freq(String key)
freq
public double freq(char[]... keyArray)
freq
public double freq(char... keyArray)
samples
public Set<String> samples()
add
public void add(int value,
char[]... keyArray)
add
public void add(int value,
Collection<char[]> keyArray)
save
public void save(DataOutputStream out)
throws Exception
- 从接口
ICacheAble 复制的描述
- 写入
- 指定者:
- 接口
ICacheAble 中的 save
- 抛出:
Exception
load
public boolean load(ByteArray byteArray)
- 从接口
ICacheAble 复制的描述
- 载入
- 指定者:
- 接口
ICacheAble 中的 load
- 返回:
Copyright © 2014–2015 鐮佸啘鍦�/a>. All rights reserved.