|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.hankcs.hanlp.algoritm.EditDistance
public class EditDistance
基于语义距离的编辑距离实现
| 构造方法摘要 | |
|---|---|
EditDistance()
|
|
| 方法摘要 | |
|---|---|
static int |
compute(char[] wrongWord,
char[] rightWord)
编辑距离 |
static int |
compute(int[] arrayA,
int[] arrayB)
|
static long |
compute(List<CommonSynonymDictionary.SynonymItem> synonymItemListA,
List<CommonSynonymDictionary.SynonymItem> synonymItemListB)
|
static long |
compute(long[] arrayA,
long[] arrayB)
|
static int |
compute(String a,
String b)
编辑距离 |
static int |
ed(String wrongWord,
String rightWord)
编辑距离 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public EditDistance()
| 方法详细信息 |
|---|
public static long compute(List<CommonSynonymDictionary.SynonymItem> synonymItemListA,
List<CommonSynonymDictionary.SynonymItem> synonymItemListB)
public static long compute(long[] arrayA,
long[] arrayB)
public static int compute(int[] arrayA,
int[] arrayB)
public static int compute(String a,
String b)
a - 串A,其实它们两个调换位置还是一样的b - 串B
public static int ed(String wrongWord,
String rightWord)
wrongWord - 串A,其实它们两个调换位置还是一样的rightWord - 串B
public static int compute(char[] wrongWord,
char[] rightWord)
wrongWord - 串A,其实它们两个调换位置还是一样的rightWord - 串B
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||