|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.hankcs.hanlp.corpus.dictionary.CommonDictionaryMaker
public abstract class CommonDictionaryMaker
| 构造方法摘要 | |
|---|---|
CommonDictionaryMaker(EasyDictionary dictionary)
|
|
| 方法摘要 | |
|---|---|
protected abstract void |
addToDictionary(List<List<IWord>> sentenceList)
加入到词典中,允许子类自定义过滤等等,这样比较灵活 |
void |
compute(List<List<IWord>> sentenceList)
处理语料,准备词典 |
protected abstract void |
roleTag(List<List<IWord>> sentenceList)
角色标注,如果子类要进行label的调整或增加新的首尾等等,可以在此进行 |
boolean |
saveTxtTo(String path)
将自己以文本文档的方式保存到磁盘 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public CommonDictionaryMaker(EasyDictionary dictionary)
| 方法详细信息 |
|---|
public boolean saveTxtTo(String path)
ISaveAble 复制的描述
ISaveAble 中的 saveTxtTopath - 保存位置,包含文件名,不一定包含后缀
public void compute(List<List<IWord>> sentenceList)
protected abstract void addToDictionary(List<List<IWord>> sentenceList)
sentenceList - protected abstract void roleTag(List<List<IWord>> sentenceList)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||