| Package | Description |
|---|---|
| com.hankcs.hanlp.corpus.document.sentence | |
| com.hankcs.hanlp.model.crf | |
| com.hankcs.hanlp.model.hmm | |
| 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.instance | |
| com.hankcs.hanlp.model.perceptron.utility | |
| com.hankcs.hanlp.tokenizer.lexical | |
| com.hankcs.hanlp.tokenizer.pipe |
| Modifier and Type | Method and Description |
|---|---|
String[][] |
Sentence.toWordTagNerArray(NERTagSet tagSet)
word pos ner
|
| Modifier and Type | Field and Description |
|---|---|
NERTagSet |
CRFNERecognizer.tagSet |
| Modifier and Type | Method and Description |
|---|---|
NERTagSet |
CRFNERecognizer.getNERTagSet() |
| Modifier and Type | Method and Description |
|---|---|
NERTagSet |
HMMNERecognizer.getNERTagSet() |
| Modifier and Type | Field and Description |
|---|---|
NERTagSet |
NERTrainer.tagSet
支持任意自定义NER类型,例如:
tagSet.nerLabels.clear(); tagSet.nerLabels.add("nr"); tagSet.nerLabels.add("ns"); tagSet.nerLabels.add("nt"); |
| Modifier and Type | Method and Description |
|---|---|
NERTagSet |
PerceptronNERecognizer.getNERTagSet() |
| Constructor and Description |
|---|
NERTrainer(NERTagSet tagSet) |
| Constructor and Description |
|---|
NERInstance(String[][] tuples,
NERTagSet tagSet,
FeatureMap featureMap) |
NERInstance(String[] wordArray,
String[] posArray,
String[] nerArray,
NERTagSet tagSet,
FeatureMap featureMap) |
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
Utility.combineNER(String[] nerArray,
NERTagSet tagSet) |
static List<String[]> |
Utility.convertSentenceToNER(Sentence sentence,
NERTagSet tagSet)
将句子转换为 (单词,词性,NER标签)三元组
|
| Modifier and Type | Method and Description |
|---|---|
NERTagSet |
NERecognizer.getNERTagSet() |
NERTagSet |
AbstractLexicalAnalyzer.getNERTagSet() |
| Modifier and Type | Method and Description |
|---|---|
NERTagSet |
LexicalAnalyzerPipeline.getNERTagSet() |
Copyright © 2014–2021 码农场. All rights reserved.