| Package | Description |
|---|---|
| com.hankcs.hanlp.model.crf | |
| com.hankcs.hanlp.model.perceptron |
感知机在线学习算法的线性序列标注模型。基于这套框架实现了一整套分词、词性标注和命名实体识别功能。
理论参考邓知龙 《基于感知器算法的高效中文分词与词性标注系统设计与实现》,
简介:http://www.hankcs.com/nlp/segment/implementation-of-word-segmentation-device-java-based-on-structured-average-perceptron.html
|
| com.hankcs.hanlp.model.perceptron.model | |
| com.hankcs.hanlp.model.perceptron.utility |
| Modifier and Type | Class and Description |
|---|---|
class |
LogLinearModel
对数线性模型形式的CRF模型
|
| Modifier and Type | Method and Description |
|---|---|
LinearModel |
PerceptronTagger.getModel() |
LinearModel |
PerceptronClassifier.getModel() |
LinearModel |
PerceptronTrainer.Result.getModel()
获取模型
|
| Modifier and Type | Method and Description |
|---|---|
protected double[] |
InstanceConsumer.evaluate(String developFile,
LinearModel model) |
double[] |
CWSTrainer.evaluate(String developFile,
LinearModel model) |
| Constructor and Description |
|---|
PerceptronClassifier(LinearModel model) |
PerceptronLexicalAnalyzer(LinearModel CWSModel) |
PerceptronLexicalAnalyzer(LinearModel cwsModel,
LinearModel posModel,
LinearModel nerModel) |
PerceptronNameGenderClassifier(LinearModel model) |
PerceptronNERecognizer(LinearModel nerModel) |
PerceptronPOSTagger(LinearModel model) |
PerceptronSegmenter(LinearModel cwsModel) |
PerceptronTagger(LinearModel model) |
Result(LinearModel model,
double[] prf) |
| Modifier and Type | Class and Description |
|---|---|
class |
AveragedPerceptron
平均感知机算法学习的线性模型
|
class |
StructuredPerceptron
结构化感知机算法学习的线性模型
|
| Modifier and Type | Method and Description |
|---|---|
LinearModel |
LinearModel.compress(double ratio)
模型压缩
|
LinearModel |
LinearModel.compress(double ratio,
double threshold) |
| Modifier and Type | Method and Description |
|---|---|
static double[] |
IOUtility.evaluate(Instance[] instances,
LinearModel model) |
static void |
IOUtility.evaluate(Instance instance,
LinearModel model,
int[] stat) |
Copyright © 2014–2021 码农场. All rights reserved.