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
| 从类 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.