|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.hankcs.hanlp.dependency.nnparser.Alphabet
public class Alphabet
int 到 String 的双向map
| 构造方法摘要 | |
|---|---|
Alphabet()
|
|
| 方法摘要 | |
|---|---|
int |
build(TreeMap<String,Integer> keyValueMap)
|
Integer |
idOf(char[] label)
label转id |
Integer |
idOf(String label)
label转id |
String |
labelOf(int id)
id转label |
boolean |
load(ByteArray byteArray)
载入 |
void |
save(DataOutputStream out)
写入 |
int |
size()
字母表大小 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public Alphabet()
| 方法详细信息 |
|---|
public String labelOf(int id)
id -
public int build(TreeMap<String,Integer> keyValueMap)
public Integer idOf(char[] label)
label -
public Integer idOf(String label)
label -
public int size()
public void save(DataOutputStream out)
throws Exception
ICacheAble 复制的描述
ICacheAble 中的 saveExceptionpublic boolean load(ByteArray byteArray)
ICacheAble 复制的描述
ICacheAble 中的 load
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||