com.hankcs.hanlp.corpus.dictionary
类 NatureDictionaryMaker
java.lang.Object
com.hankcs.hanlp.corpus.dictionary.CommonDictionaryMaker
com.hankcs.hanlp.corpus.dictionary.NatureDictionaryMaker
- 所有已实现的接口:
- ISaveAble
public class NatureDictionaryMaker
- extends CommonDictionaryMaker
- 作者:
- hankcs
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NatureDictionaryMaker
public NatureDictionaryMaker()
addToDictionary
protected void addToDictionary(List<List<IWord>> sentenceList)
- 从类
CommonDictionaryMaker 复制的描述
- 加入到词典中,允许子类自定义过滤等等,这样比较灵活
- 指定者:
- 类
CommonDictionaryMaker 中的 addToDictionary
roleTag
protected void roleTag(List<List<IWord>> sentenceList)
- 从类
CommonDictionaryMaker 复制的描述
- 角色标注,如果子类要进行label的调整或增加新的首尾等等,可以在此进行
- 指定者:
- 类
CommonDictionaryMaker 中的 roleTag
main
public static void main(String[] args)
Copyright © 2014–2015 码农场. All rights reserved.