com.hankcs.hanlp.corpus.dependency.model
类 MaxEntDependencyModelMaker
java.lang.Object
com.hankcs.hanlp.corpus.dependency.model.MaxEntDependencyModelMaker
public class MaxEntDependencyModelMaker
- extends Object
最大熵模型构建工具,训练暂时不使用自己的代码,借用opennlp训练。本maker只生成训练文件
- 作者:
- hankcs
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaxEntDependencyModelMaker
public MaxEntDependencyModelMaker()
makeModel
public static boolean makeModel(String corpusLoadPath,
String modelSavePath)
throws IOException
- 抛出:
IOException
generateSingleWordContext
public static Collection<String> generateSingleWordContext(CoNLLWord[] word,
int index,
String mark)
generateUniContext
public static Collection<String> generateUniContext(CoNLLWord[] word,
int i,
int j)
main
public static void main(String[] args)
throws IOException
- 抛出:
IOException
Copyright © 2014–2015 码农场. All rights reserved.