| 构造器和说明 |
|---|
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)
将自己以文本文档的方式保存到磁盘
|
public CommonDictionaryMaker(EasyDictionary dictionary)
Copyright © 2014–2017 码农场. All rights reserved.