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

构造方法摘要
MaxEntDependencyModelMaker()
           
 
方法摘要
static Collection<String> generateSingleWordContext(CoNLLWord[] word, int index, String mark)
           
static Collection<String> generateUniContext(CoNLLWord[] word, int i, int j)
           
static void main(String[] args)
           
static boolean makeModel(String corpusLoadPath, String modelSavePath)
           
 
从类 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.