| 程序包 | 说明 |
|---|---|
| com.hankcs.hanlp.dependency.perceptron.structures | |
| com.hankcs.hanlp.dependency.perceptron.transition.configuration | |
| com.hankcs.hanlp.dependency.perceptron.transition.parser |
| 限定符和类型 | 方法和说明 |
|---|---|
Sentence |
IndexMaps.makeSentence(String[] words,
String[] posTags,
boolean rootFirst,
boolean lowerCased)
将句子中的字符串转换为id
|
| 限定符和类型 | 字段和说明 |
|---|---|
Sentence |
Configuration.sentence |
protected Sentence |
Instance.sentence |
| 限定符和类型 | 方法和说明 |
|---|---|
Sentence |
Instance.getSentence() |
| 构造器和说明 |
|---|
Configuration(Sentence sentence) |
Configuration(Sentence sentence,
boolean rootFirst) |
Instance(Sentence sentence,
HashMap<Integer,Edge> goldDependencies) |
| 限定符和类型 | 方法和说明 |
|---|---|
Configuration |
KBeamArcEagerParser.parse(Sentence sentence) |
Configuration |
KBeamArcEagerParser.parse(Sentence sentence,
boolean rootFirst,
int beamWidth,
int numOfThreads) |
Configuration |
KBeamArcEagerParser.parsePartial(Instance instance,
Sentence sentence,
boolean rootFirst,
int beamWidth,
int numOfThreads) |
| 构造器和说明 |
|---|
ParseThread(int id,
AveragedPerceptron classifier,
ArrayList<Integer> dependencyRelations,
int featureLength,
Sentence sentence,
boolean rootFirst,
int beamWidth,
Instance instance,
boolean partial) |
Copyright © 2014–2019 码农场. All rights reserved.