com.hankcs.hanlp.dependency
类 MaxEntDependencyParser

java.lang.Object
  继承者 com.hankcs.hanlp.dependency.AbstractDependencyParser
      继承者 com.hankcs.hanlp.dependency.MinimumSpanningTreeParser
          继承者 com.hankcs.hanlp.dependency.MaxEntDependencyParser
所有已实现的接口:
IDependencyParser

public class MaxEntDependencyParser
extends MinimumSpanningTreeParser

最大熵句法分析器

作者:
hankcs

构造方法摘要
MaxEntDependencyParser()
           
 
方法摘要
static CoNLLSentence compute(List<Term> termList)
          分析句子的依存句法
static CoNLLSentence compute(String sentence)
          分析句子的依存句法
protected  Edge makeEdge(Node[] nodeArray, int from, int to)
           
 
从类 com.hankcs.hanlp.dependency.MinimumSpanningTreeParser 继承的方法
parse
 
从类 com.hankcs.hanlp.dependency.AbstractDependencyParser 继承的方法
enableDeprelTranslator, getDeprelTranslator, getSegment, parse, setDeprelTranslater, setDeprelTranslator, setSegment
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MaxEntDependencyParser

public MaxEntDependencyParser()
方法详细信息

compute

public static CoNLLSentence compute(List<Term> termList)
分析句子的依存句法

参数:
termList - 句子,可以是任何具有词性标注功能的分词器的分词结果
返回:
CoNLL格式的依存句法树

compute

public static CoNLLSentence compute(String sentence)
分析句子的依存句法

参数:
sentence - 句子
返回:
CoNLL格式的依存句法树

makeEdge

protected Edge makeEdge(Node[] nodeArray,
                        int from,
                        int to)
指定者:
MinimumSpanningTreeParser 中的 makeEdge


Copyright © 2014–2015 鐮佸啘鍦�/a>. All rights reserved.