Package | Description |
---|---|
org.ansj.domain | |
org.ansj.library | |
org.ansj.recognition | |
org.ansj.recognition.arrimpl | |
org.ansj.recognition.impl | |
org.ansj.splitWord | |
org.ansj.splitWord.analysis | |
org.ansj.util |
Modifier and Type | Method and Description |
---|---|
Term |
Term.from() |
Term |
Result.get(int index) |
Term |
Term.merage(Term to)
进行term合并
|
Term |
Term.merageWithBlank(Term to)
进行term合并,能合并空白字符
|
Term |
Term.next() |
Term |
Term.setNext(Term next)
返回他自己
|
Term |
Term.to() |
Modifier and Type | Method and Description |
---|---|
List<Term> |
Term.getSubTerm() |
List<Term> |
Result.getTerms() |
Iterator<Term> |
Result.iterator() |
Modifier and Type | Method and Description |
---|---|
Term |
Term.merage(Term to)
进行term合并
|
Term |
Term.merageWithBlank(Term to)
进行term合并,能合并空白字符
|
void |
Term.setFrom(Term from) |
Term |
Term.setNext(Term next)
返回他自己
|
void |
Term.setPathScore(Term from,
Map<String,Double> relationMap)
核心构建最优的路径
|
void |
Term.setPathSelfScore(Term from)
核心分数的最优的路径,越小越好
|
void |
Term.setTo(Term to) |
Modifier and Type | Method and Description |
---|---|
void |
Term.setSubTerm(List<Term> subTerm) |
void |
Result.setTerms(List<Term> terms) |
Constructor and Description |
---|
Result(List<Term> terms) |
Modifier and Type | Method and Description |
---|---|
static int |
NatureLibrary.getTwoTermFreq(Term fromTerm,
Term toTerm)
获得两个term之间的频率
|
static int |
NgramLibrary.getTwoWordFreq(Term from,
Term to)
查找两个词与词之间的频率
|
Modifier and Type | Method and Description |
---|---|
void |
TermArrRecognition.recognition(Term[] terms) |
Modifier and Type | Method and Description |
---|---|
Term |
ForeignPersonRecognition.makeNewTerm() |
Modifier and Type | Method and Description |
---|---|
List<Term> |
AsianPersonRecognition.getNewTerms() |
List<Term> |
ForeignPersonRecognition.getNewTerms() |
Modifier and Type | Method and Description |
---|---|
List<NewWord> |
AsianPersonRecognition.getNewWords(Term[] terms) |
List<NewWord> |
ForeignPersonRecognition.getNewWords(Term[] terms) |
void |
AsianPersonRecognition.recognition(Term[] terms) |
void |
ForeignPersonRecognition.recognition(Term[] terms) |
void |
NewWordRecognition.recognition(Term[] terms) |
void |
NumRecognition.recognition(Term[] terms)
数字+数字合并,zheng
|
void |
UserDefineRecognition.recognition(Term[] terms) |
Modifier and Type | Method and Description |
---|---|
List<Term> |
NatureRecognition.recognition(List<String> words)
传入一组。
|
List<Term> |
NatureRecognition.recognition(List<String> words,
int offe)
传入一组。
|
Modifier and Type | Method and Description |
---|---|
boolean |
StopRecognition.filter(Term term)
判断一个词语是否停用..
|
Modifier and Type | Method and Description |
---|---|
Term |
Analysis.next()
while 循环调用.直到返回为null则分词结束
|
Modifier and Type | Method and Description |
---|---|
protected abstract List<Term> |
Analysis.getResult(Graph graph) |
abstract List<Term> |
Analysis.Merger.merger() |
Modifier and Type | Method and Description |
---|---|
protected void |
Analysis.setRealName(Graph graph,
List<Term> result)
将为标准化的词语设置到分词中
|
Modifier and Type | Method and Description |
---|---|
protected List<Term> |
BaseAnalysis.getResult(Graph graph) |
protected List<Term> |
DicAnalysis.getResult(Graph graph) |
protected List<Term> |
IndexAnalysis.getResult(Graph graph) |
protected List<Term> |
NlpAnalysis.getResult(Graph graph) |
protected List<Term> |
ToAnalysis.getResult(Graph graph) |
Modifier and Type | Field and Description |
---|---|
protected Term |
Graph.end |
protected Term |
Graph.root |
Term[] |
Graph.terms |
Modifier and Type | Method and Description |
---|---|
static Term |
TermUtil.makeNewTermNum(Term from,
Term to,
TermNatures termNatures)
将两个term合并为一个全新的term
|
protected Term |
Graph.optimalRoot()
取得最优路径的root Term
|
protected static Term |
TermUtil.setToAndfrom(Term to,
Term from) |
Modifier and Type | Method and Description |
---|---|
List<Term> |
Graph.getResult(Analysis.Merger merger)
构建最优路径
|
static List<Term> |
TermUtil.getSubTerm(Term from,
Term to)
从from到to生成subterm
|
Modifier and Type | Method and Description |
---|---|
void |
Graph.addTerm(Term term)
增加一个词语到图中
|
static double |
MathUtil.compuScore(Term from,
Term to,
Map<String,Double> relationMap)
从一个词的词性到另一个词的词的分数
|
static double |
MathUtil.compuScoreFreq(Term from,
Term term)
词性词频词长.计算出来一个分数
|
static List<Term> |
TermUtil.getSubTerm(Term from,
Term to)
从from到to生成subterm
|
static void |
TermUtil.insertTerm(Term[] terms,
List<Term> tempList,
TermNatures nr) |
static void |
TermUtil.insertTerm(Term[] terms,
Term term,
TermUtil.InsertTermType type)
将一个term插入到链表中的对应位置中, 如果这个term已经存在参照type type 0.跳过 1.
|
static void |
TermUtil.insertTerm(Term[] terms,
Term term,
TermUtil.InsertTermType type)
将一个term插入到链表中的对应位置中, 如果这个term已经存在参照type type 0.跳过 1.
|
static void |
TermUtil.insertTermNum(Term[] terms,
Term term) |
static void |
TermUtil.insertTermNum(Term[] terms,
Term term) |
static Term |
TermUtil.makeNewTermNum(Term from,
Term to,
TermNatures termNatures)
将两个term合并为一个全新的term
|
static void |
NameFix.nameAmbiguity(Term[] terms,
org.nlpcn.commons.lang.tire.domain.Forest... forests)
人名消歧,比如.邓颖超生前->邓颖 超生 前 fix to 丁颖超 生 前!
|
static void |
TermUtil.parseNature(Term term)
得到细颗粒度的分词,并且确定词性
|
protected static Term |
TermUtil.setToAndfrom(Term to,
Term from) |
static void |
TermUtil.termLink(Term from,
Term to) |
Modifier and Type | Method and Description |
---|---|
static void |
TermUtil.insertTerm(Term[] terms,
List<Term> tempList,
TermNatures nr) |
Copyright © 2020. All rights reserved.