com.hankcs.hanlp.dependency
类 CRFDependencyParser

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

public class CRFDependencyParser
extends AbstractDependencyParser

基于随机条件场的依存句法分析器

作者:
hankcs

构造方法摘要
CRFDependencyParser()
           
 
方法摘要
static CoNLLSentence compute(List<Term> termList)
          分析句子的依存句法
static CoNLLSentence compute(String sentence)
          分析句子的依存句法
 CoNLLSentence parse(List<Term> termList)
          分析句子的依存句法
 
从类 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
 

构造方法详细信息

CRFDependencyParser

public CRFDependencyParser()
方法详细信息

compute

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

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

compute

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

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

parse

public CoNLLSentence parse(List<Term> termList)
从接口 IDependencyParser 复制的描述
分析句子的依存句法

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


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