| Package | Description |
|---|---|
| com.hankcs.hanlp.corpus.dependency.CoNll | |
| com.hankcs.hanlp.corpus.dependency.model |
| Modifier and Type | Field and Description |
|---|---|
CoNLLWord |
CoNLLWord.HEAD
当前词语的中心词
|
static CoNLLWord |
CoNLLWord.NULL
空白节点,用于描述下标超出word数组的词语
|
static CoNLLWord |
CoNLLWord.ROOT
根节点
|
CoNLLWord[] |
CoNLLSentence.word
有许多行,每行是一个单词
|
| Modifier and Type | Method and Description |
|---|---|
CoNLLWord[] |
CoNLLSentence.getWordArray() |
CoNLLWord[] |
CoNLLSentence.getWordArrayWithRoot()
获取包含根节点在内的单词数组
|
| Modifier and Type | Method and Description |
|---|---|
List<CoNLLWord> |
CoNLLSentence.findChildren(CoNLLWord word)
找出所有子节点
|
List<CoNLLWord> |
CoNLLSentence.findChildren(CoNLLWord word,
String relation)
找出特定依存关系的子节点
|
Iterator<CoNLLWord> |
CoNLLSentence.iterator() |
| Modifier and Type | Method and Description |
|---|---|
List<CoNLLWord> |
CoNLLSentence.findChildren(CoNLLWord word)
找出所有子节点
|
List<CoNLLWord> |
CoNLLSentence.findChildren(CoNLLWord word,
String relation)
找出特定依存关系的子节点
|
| Constructor and Description |
|---|
CoNLLSentence(CoNLLWord[] word) |
| Modifier and Type | Method and Description |
|---|---|
static Collection<String> |
MaxEntDependencyModelMaker.generateSingleWordContext(CoNLLWord[] word,
int index,
String mark) |
static Collection<String> |
MaxEntDependencyModelMaker.generateUniContext(CoNLLWord[] word,
int i,
int j) |
Copyright © 2014–2021 码农场. All rights reserved.