| Modifier and Type | Method and Description |
|---|---|
static List<Vertex> |
Dijkstra.compute(Graph graph) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Viterbi.compute(List<Vertex> vertexList,
TransformMatrix transformMatrixDictionary)
特化版的求解HMM模型
|
| Modifier and Type | Method and Description |
|---|---|
static void |
PersonDictionary.parsePattern(List<NR> nrList,
List<Vertex> vertexList,
WordNet wordNetOptimum,
WordNet wordNetAll)
模式匹配
|
| Modifier and Type | Method and Description |
|---|---|
static void |
PlaceDictionary.parsePattern(List<NS> nsList,
List<Vertex> vertexList,
WordNet wordNetOptimum,
WordNet wordNetAll)
模式匹配
|
| Modifier and Type | Method and Description |
|---|---|
static void |
OrganizationDictionary.parsePattern(List<NT> ntList,
List<Vertex> vertexList,
WordNet wordNetOptimum,
WordNet wordNetAll)
模式匹配
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
PersonRecognition.recognition(List<Vertex> pWordSegResult,
WordNet wordNetOptimum,
WordNet wordNetAll) |
static void |
JapanesePersonRecognition.recognition(List<Vertex> segResult,
WordNet wordNetOptimum,
WordNet wordNetAll)
执行识别
|
static void |
TranslatedPersonRecognition.recognition(List<Vertex> segResult,
WordNet wordNetOptimum,
WordNet wordNetAll)
执行识别
|
static List<EnumItem<NR>> |
PersonRecognition.roleObserve(List<Vertex> wordSegResult)
角色观察(从模型中加载所有词语对应的所有角色,允许进行一些规则补充)
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
PlaceRecognition.recognition(List<Vertex> pWordSegResult,
WordNet wordNetOptimum,
WordNet wordNetAll) |
static List<EnumItem<NS>> |
PlaceRecognition.roleTag(List<Vertex> vertexList,
WordNet wordNetAll) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
OrganizationRecognition.recognition(List<Vertex> pWordSegResult,
WordNet wordNetOptimum,
WordNet wordNetAll) |
static List<EnumItem<NT>> |
OrganizationRecognition.roleTag(List<Vertex> vertexList,
WordNet wordNetAll) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Vertex> |
Segment.combineByCustomDictionary(List<Vertex> vertexList)
使用用户词典合并粗分结果
|
protected List<Vertex> |
Segment.combineByCustomDictionary(List<Vertex> vertexList,
DoubleArrayTrie<CoreDictionary.Attribute> dat)
使用用户词典合并粗分结果
|
protected List<Vertex> |
Segment.combineByCustomDictionary(List<Vertex> vertexList,
DoubleArrayTrie<CoreDictionary.Attribute> dat,
WordNet wordNetAll)
使用用户词典合并粗分结果,并将用户词语收集到全词图中
|
protected List<Vertex> |
Segment.combineByCustomDictionary(List<Vertex> vertexList,
WordNet wordNetAll)
使用用户词典合并粗分结果,并将用户词语收集到全词图中
|
protected List<Vertex> |
CharacterBasedSegment.toVertexList(List<Term> wordList,
boolean appendStart)
将中间结果转换为词网顶点,
这样就可以利用基于Vertex开发的功能, 如词性标注、NER等
|
| Modifier and Type | Method and Description |
|---|---|
protected List<Vertex> |
Segment.combineByCustomDictionary(List<Vertex> vertexList)
使用用户词典合并粗分结果
|
protected List<Vertex> |
Segment.combineByCustomDictionary(List<Vertex> vertexList,
DoubleArrayTrie<CoreDictionary.Attribute> dat)
使用用户词典合并粗分结果
|
protected List<Vertex> |
Segment.combineByCustomDictionary(List<Vertex> vertexList,
DoubleArrayTrie<CoreDictionary.Attribute> dat,
WordNet wordNetAll)
使用用户词典合并粗分结果,并将用户词语收集到全词图中
|
protected List<Vertex> |
Segment.combineByCustomDictionary(List<Vertex> vertexList,
WordNet wordNetAll)
使用用户词典合并粗分结果,并将用户词语收集到全词图中
|
protected static List<Term> |
WordBasedSegment.convert(List<Vertex> vertexList)
将一条路径转为最终结果
|
protected static List<Term> |
Segment.convert(List<Vertex> vertexList,
boolean offsetEnabled)
将一条路径转为最终结果
|
protected List<Term> |
WordBasedSegment.decorateResultForIndexMode(List<Vertex> vertexList,
WordNet wordNetAll)
为了索引模式修饰结果
|
protected static void |
WordBasedSegment.fixResultByRule(List<Vertex> linkedArray)
通过规则修正一些结果
|
protected static void |
WordBasedSegment.generateWord(List<Vertex> linkedArray,
WordNet wordNetOptimum)
对粗分结果执行一些规则上的合并拆分等等,同时合成新词网
|
protected void |
Segment.mergeNumberQuantifier(List<Vertex> termList,
WordNet wordNetAll,
Config config)
合并数字
|
protected static void |
WordBasedSegment.speechTagging(List<Vertex> vertexList)
词性标注
|
| Modifier and Type | Field and Description |
|---|---|
Vertex |
Vertex.from
到该节点的最短路径的前驱节点
|
Vertex[] |
Graph.vertexes
顶点
|
| Modifier and Type | Method and Description |
|---|---|
Vertex |
Vertex.copy()
复制自己
|
Vertex |
WordNet.get(int line,
int length)
获取某一行长度为length的节点
|
Vertex |
WordNet.getFirst(int line)
获取某一行的第一个节点
|
Vertex |
Vertex.getFrom() |
Vertex[] |
Graph.getVertexes() |
static Vertex |
Vertex.newAddressInstance(String realWord)
创建一个地名实例
|
static Vertex |
Vertex.newB()
生成线程安全的起始节点
|
static Vertex |
Vertex.newE()
生成线程安全的终止节点
|
static Vertex |
Vertex.newJapanesePersonInstance(String realWord,
int frequency)
创建一个日本人名实例
|
static Vertex |
Vertex.newNumberInstance(String realWord)
创建一个数词实例
|
static Vertex |
Vertex.newOrganizationInstance(String realWord,
int frequency)
创建一个机构名实例
|
static Vertex |
Vertex.newPersonInstance(String realWord)
创建一个人名实例
|
static Vertex |
Vertex.newPersonInstance(String realWord,
int frequency)
创建一个人名实例
|
static Vertex |
Vertex.newPlaceInstance(String realWord,
int frequency)
创建一个地名实例
|
static Vertex |
Vertex.newPunctuationInstance(String realWord)
创建一个标点符号实例
|
static Vertex |
Vertex.newTimeInstance(String realWord)
创建一个时间实例
|
static Vertex |
Vertex.newTranslatedPersonInstance(String realWord,
int frequency)
创建一个音译人名实例
|
Vertex |
Vertex.setRealWord(String realWord) |
Vertex |
Vertex.setWord(String word) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Vertex> |
WordNet.descendingIterator(int line)
获取某一行的逆序迭代器
|
LinkedList<Vertex> |
WordNet.get(int line)
获取某一行的所有节点
|
List<Vertex> |
Graph.parsePath(int[] path)
根据节点下标数组解释出对应的路径
|
| Modifier and Type | Method and Description |
|---|---|
void |
WordNet.add(int line,
Vertex vertex)
添加顶点
|
void |
WordNet.insert(int line,
Vertex vertex,
WordNet wordNetAll)
添加顶点,同时检查此顶点是否悬孤,如果悬孤则自动补全
|
void |
WordNet.push(int line,
Vertex vertex)
强行添加,替换已有的顶点
|
void |
Vertex.setFrom(Vertex from) |
void |
Vertex.updateFrom(Vertex from) |
| Modifier and Type | Method and Description |
|---|---|
void |
WordNet.addAll(List<Vertex> vertexList)
全自动添加顶点
|
static String |
Graph.parseResult(List<Vertex> path)
从一个路径中转换出空格隔开的结果
|
| Constructor and Description |
|---|
Graph(Vertex[] vertexes)
将一个词网转为词图
|
| Constructor and Description |
|---|
WordNet(char[] charArray,
List<Vertex> vertexList) |
| Modifier and Type | Method and Description |
|---|---|
List<List<Vertex>> |
NShortSegment.biSegment(char[] sSentence,
int nKind,
WordNet wordNetOptimum,
WordNet wordNetAll)
二元语言模型分词
|
| Modifier and Type | Method and Description |
|---|---|
static Vertex |
AtomNode.convert(String word,
int type) |
| Constructor and Description |
|---|
Node(Vertex vertex) |
| Modifier and Type | Method and Description |
|---|---|
static double |
MathUtility.calculateWeight(Vertex from,
Vertex to)
从一个词到另一个词的词的花费
|
Copyright © 2014–2021 码农场. All rights reserved.